[gnome-initial-setup] copy-worker: Clean up code



commit 1662fd6305d9e08049b4fa8884aa03f82e068e27
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Fri Oct 5 22:02:09 2012 -0300

    copy-worker: Clean up code
    
    No need to have a return value if nothing cares about it.

 .../gnome-initial-setup-copy-worker.c              |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/gnome-initial-setup/gnome-initial-setup-copy-worker.c b/gnome-initial-setup/gnome-initial-setup-copy-worker.c
index 6097a02..0def968 100644
--- a/gnome-initial-setup/gnome-initial-setup-copy-worker.c
+++ b/gnome-initial-setup/gnome-initial-setup-copy-worker.c
@@ -13,7 +13,7 @@ get_skeleton_dir (void)
   return g_build_filename (g_get_user_runtime_dir (), SKELETON_PATH, NULL);
 }
 
-static gboolean
+static void
 move_file_from_tmpfs (GFile *src_base,
                       const gchar *dir,
                       const gchar *path)
@@ -24,7 +24,6 @@ move_file_from_tmpfs (GFile *src_base,
   GFile *src = g_file_get_child (src_base, basename);
 
   GError *error = NULL;
-  gboolean ret = TRUE;
 
   if (!g_file_move (src, dest, G_FILE_COPY_NONE,
                     NULL, NULL, NULL, &error)) {
@@ -33,7 +32,6 @@ move_file_from_tmpfs (GFile *src_base,
                  g_file_get_path (src),
                  g_file_get_path (dest),
                  error->message);
-      ret = FALSE;
     }
     g_error_free (error);
   }
@@ -42,8 +40,6 @@ move_file_from_tmpfs (GFile *src_base,
   g_object_unref (dest);
   g_object_unref (src);
   g_free (basename);
-
-  return ret;
 }
 
 int



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]