[gvfs] monitor: Unused variables cleanup
- From: Tomas Bzatek <tbzatek src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] monitor: Unused variables cleanup
- Date: Thu, 30 Aug 2012 17:19:02 +0000 (UTC)
commit 232a247b77fdf693cfccb3327712c85661f9fd9a
Author: Tomas Bzatek <tbzatek redhat com>
Date: Thu Aug 30 19:18:25 2012 +0200
monitor: Unused variables cleanup
monitor/proxy/gproxyvolumemonitor.c | 4 ----
monitor/proxy/gvfsproxyvolumemonitordaemon.c | 7 +------
2 files changed, 1 insertions(+), 10 deletions(-)
---
diff --git a/monitor/proxy/gproxyvolumemonitor.c b/monitor/proxy/gproxyvolumemonitor.c
index bc2a1a6..1af6c34 100644
--- a/monitor/proxy/gproxyvolumemonitor.c
+++ b/monitor/proxy/gproxyvolumemonitor.c
@@ -922,10 +922,6 @@ name_owner_changed (GObject *gobject,
GProxyVolumeMonitor *monitor = G_PROXY_VOLUME_MONITOR (user_data);
GProxyVolumeMonitorClass *klass;
gchar *name_owner = NULL;
- GHashTableIter hash_iter;
- GProxyDrive *drive;
- GProxyVolume *volume;
- GProxyMount *mount;
klass = G_PROXY_VOLUME_MONITOR_CLASS (G_OBJECT_GET_CLASS (monitor));
diff --git a/monitor/proxy/gvfsproxyvolumemonitordaemon.c b/monitor/proxy/gvfsproxyvolumemonitordaemon.c
index 446eb0f..e059370 100644
--- a/monitor/proxy/gvfsproxyvolumemonitordaemon.c
+++ b/monitor/proxy/gvfsproxyvolumemonitordaemon.c
@@ -1999,11 +1999,9 @@ g_vfs_proxy_volume_monitor_daemon_main (int argc,
const char *dbus_name,
GType volume_monitor_type)
{
- int ret;
guint name_owner_id;
name_owner_id = 0;
- ret = 1;
loop = g_main_loop_new (NULL, FALSE);
@@ -2030,9 +2028,6 @@ g_vfs_proxy_volume_monitor_daemon_main (int argc,
NULL);
g_main_loop_run (loop);
- ret = 0;
-
-out:
if (name_owner_id != 0)
g_bus_unown_name (name_owner_id);
if (loop != NULL)
@@ -2040,5 +2035,5 @@ out:
if (unique_names_being_watched)
g_hash_table_unref (unique_names_being_watched);
- return ret;
+ return 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]