[Xfce4-commits] <gigolo:master> Remove some set but unused variables

Enrico Tröger noreply at xfce.org
Sat Sep 17 14:26:03 CEST 2011


Updating branch refs/heads/master
         to e7c1943f998b198012547f07016ed6c4e3a06ecf (commit)
       from acd2f122aefbed9558a2d034c1947fbaa3bc8ca1 (commit)

commit e7c1943f998b198012547f07016ed6c4e3a06ecf
Author: Enrico Tröger <enrico at xfce.org>
Date:   Sat Sep 17 14:24:57 2011 +0200

    Remove some set but unused variables

 src/backendgvfs.c |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/src/backendgvfs.c b/src/backendgvfs.c
index 0d74d96..0513210 100644
--- a/src/backendgvfs.c
+++ b/src/backendgvfs.c
@@ -205,10 +205,6 @@ static void gigolo_backend_gvfs_class_init(GigoloBackendGVFSClass *klass)
 
 static void gigolo_backend_gvfs_finalize(GObject *object)
 {
-	GigoloBackendGVFS *self;
-
-	self = GIGOLO_BACKEND_GVFS(object);
-
 	G_OBJECT_CLASS(gigolo_backend_gvfs_parent_class)->finalize(object);
 }
 
@@ -538,11 +534,10 @@ void gigolo_backend_gvfs_unmount_mount(GigoloBackendGVFS *backend, gpointer moun
 static void mount_ready_cb(GFile *location, GAsyncResult *res, MountInfo *mi)
 {
 	gchar *uri;
-	gboolean success;
 	GError *error = NULL;
 
 	uri = g_file_get_uri(location);
-	success = g_file_mount_enclosing_volume_finish(location, res, &error);
+	g_file_mount_enclosing_volume_finish(location, res, &error);
 
 	if (error != NULL && ! g_error_matches(error, G_IO_ERROR, G_IO_ERROR_ALREADY_MOUNTED))
 	{
@@ -634,14 +629,13 @@ static gboolean browse_network_ready_cb(gpointer backend)
 
 static void browse_network_mount_ready_cb(GFile *location, GAsyncResult *res, BrowseData *bd)
 {
-	gboolean success;
 	GError *error = NULL;
 	GigoloBackendGVFSPrivate *priv;
 
 	g_return_if_fail(bd != NULL);
 	g_return_if_fail(bd->self != NULL);
 
-	success = g_file_mount_enclosing_volume_finish(location, res, &error);
+	g_file_mount_enclosing_volume_finish(location, res, &error);
 
 	priv = GIGOLO_BACKEND_GVFS_GET_PRIVATE(bd->self);
 	priv->browse_counter--;


More information about the Xfce4-commits mailing list