[accounts-dialog] Remove some dead code



commit a5cb0cd92114d01d88ceda3e250c9f143bb67b7e
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jan 17 22:16:12 2010 -0500

    Remove some dead code

 src/Makefile.am |    1 -
 src/um-user.c   |   33 ---------------------------------
 2 files changed, 0 insertions(+), 34 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 99e308e..01e996c 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,7 +1,6 @@
 bin_PROGRAMS = accounts-dialog
 
 INCLUDES = \
-	-DUM_CACHE_DIR=\""$(localstatedir)/cache/um"\"	\
 	-DDATADIR=\""$(datadir)"\"			\
 	-DUIDIR=\""$(pkgdatadir)"\"			\
 	-DLIBLOCALEDIR=\""$(prefix)/lib/locale"\"       \
diff --git a/src/um-user.c b/src/um-user.c
index 791922d..592217d 100644
--- a/src/um-user.c
+++ b/src/um-user.c
@@ -360,31 +360,6 @@ check_user_file (const char *filename,
         return TRUE;
 }
 
-static GdkPixbuf *
-render_icon_from_cache (UmUser *user,
-                        int      icon_size)
-{
-        GdkPixbuf  *retval;
-        char       *path;
-        gboolean    res;
-
-        path = g_build_filename (UM_CACHE_DIR, user->props->user_name, "face", NULL);
-        res = check_user_file (path,
-                               MAX_FILE_SIZE);
-        if (res) {
-                retval = gdk_pixbuf_new_from_file_at_size (path,
-                                                           icon_size,
-                                                           icon_size,
-                                                           NULL);
-        } else {
-                g_debug ("Could not access face icon %s", path);
-                retval = NULL;
-        }
-        g_free (path);
-
-        return retval;
-}
-
 static void
 curved_rectangle (cairo_t *cr,
                   double   x0,
@@ -623,20 +598,12 @@ um_user_render_icon (UmUser   *user,
 {
         GdkPixbuf    *pixbuf;
         GdkPixbuf    *framed;
-        char         *path;
         gboolean      res;
         GError       *error;
 
         g_return_val_if_fail (UM_IS_USER (user), NULL);
         g_return_val_if_fail (icon_size > 12, NULL);
 
-        path = NULL;
-
-        pixbuf = render_icon_from_cache (user, icon_size);
-        if (pixbuf != NULL) {
-                goto out;
-        }
-
         if (user->props->icon_file) {
                 res = check_user_file (user->props->icon_file,
                                        MAX_FILE_SIZE);



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