summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@redhat.com>2012-08-30 19:18:25 +0200
committerTomas Bzatek <tbzatek@redhat.com>2012-08-30 19:18:25 +0200
commit232a247b77fdf693cfccb3327712c85661f9fd9a (patch)
treeb13932f14f78bf6cd3a1bff7985f0e6b3637f072
parent5e2d824527f6b6b8e456f1b717f9fd5d95b488ac (diff)
downloadgvfs-232a247b77fdf693cfccb3327712c85661f9fd9a.tar.gz
monitor: Unused variables cleanup
-rw-r--r--monitor/proxy/gproxyvolumemonitor.c4
-rw-r--r--monitor/proxy/gvfsproxyvolumemonitordaemon.c7
2 files changed, 1 insertions, 10 deletions
diff --git a/monitor/proxy/gproxyvolumemonitor.c b/monitor/proxy/gproxyvolumemonitor.c
index bc2a1a65..1af6c346 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 446eb0f5..e059370e 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;
}