[gdm/gnome-2-30] Remove some debug and unused code



commit e4b50a2576ead2816759156c5ce7a51f357ce17c
Author: William Jon McCann <jmccann redhat com>
Date:   Mon Jun 7 20:24:41 2010 -0400

    Remove some debug and unused code

 gui/simple-greeter/gdm-user-manager.c |    3 +-
 gui/simple-greeter/gdm-user.c         |   37 +--------------------------------
 2 files changed, 2 insertions(+), 38 deletions(-)
---
diff --git a/gui/simple-greeter/gdm-user-manager.c b/gui/simple-greeter/gdm-user-manager.c
index 3988ab3..c62aa07 100644
--- a/gui/simple-greeter/gdm-user-manager.c
+++ b/gui/simple-greeter/gdm-user-manager.c
@@ -591,8 +591,6 @@ user_in_exclude_list (GdmUserManager *manager,
         GSList   *found;
         gboolean  ret = FALSE;
 
-        g_debug ("checking exclude list");
-
         /* always exclude the "gdm" user. */
         if (user == NULL || (strcmp (user, GDM_USERNAME) == 0)) {
                 return TRUE;
@@ -606,6 +604,7 @@ user_in_exclude_list (GdmUserManager *manager,
                         ret = TRUE;
                 }
         }
+
         return ret;
 }
 
diff --git a/gui/simple-greeter/gdm-user.c b/gui/simple-greeter/gdm-user.c
index 276a867..35f4286 100644
--- a/gui/simple-greeter/gdm-user.c
+++ b/gui/simple-greeter/gdm-user.c
@@ -655,7 +655,7 @@ gdm_user_collate (GdmUser *user1,
 
         num1 = user1->login_frequency;
         num2 = user2->login_frequency;
-        g_debug ("Login freq 1=%u 2=%u", (guint)num1, (guint)num2);
+
         if (num1 > num2) {
                 return -1;
         }
@@ -711,48 +711,13 @@ check_user_file (const char *filename,
         return TRUE;
 }
 
-static char *
-get_filesystem_type (const char *path)
-{
-        GFile      *file;
-        GFileInfo  *file_info;
-        GError     *error;
-        char       *filesystem_type;
-
-        file = g_file_new_for_path (path);
-        error = NULL;
-        file_info = g_file_query_filesystem_info (file,
-                                                  G_FILE_ATTRIBUTE_FILESYSTEM_TYPE,
-                                                  NULL,
-                                                  &error);
-        if (file_info == NULL) {
-                g_warning ("Unable to query filesystem type for %s: %s", path, error->message);
-                g_error_free (error);
-                g_object_unref (file);
-                return NULL;
-        }
-
-        filesystem_type = g_strdup (g_file_info_get_attribute_string (file_info,
-                                                                      G_FILE_ATTRIBUTE_FILESYSTEM_TYPE));
-        if (filesystem_type == NULL) {
-                g_warning ("GIO returned NULL filesystem type for %s", path);
-        }
-
-        g_object_unref (file);
-        g_object_unref (file_info);
-
-        return filesystem_type;
-}
-
 static GdkPixbuf *
 render_icon_from_cache (GdmUser *user,
                         int      icon_size)
 {
         GdkPixbuf  *retval;
         char       *path;
-        gboolean    is_autofs;
         gboolean    res;
-        char       *filesystem_type;
 
         path = g_build_filename (GDM_CACHE_DIR, user->user_name, "face", NULL);
         res = check_user_file (path,



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