[gnome-software] Remove the unused gs_app_set_featured_pixbuf()



commit 78e3b6cd5c864f54b4f966c9fcb62e0f3591d2f3
Author: Richard Hughes <richard hughsie com>
Date:   Thu Jan 28 12:08:07 2016 +0000

    Remove the unused gs_app_set_featured_pixbuf()

 src/gs-app.c |   25 -------------------------
 src/gs-app.h |    3 ---
 2 files changed, 0 insertions(+), 28 deletions(-)
---
diff --git a/src/gs-app.c b/src/gs-app.c
index 49f6d89..3eb20df 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -90,7 +90,6 @@ struct _GsApp
        guint                    progress;
        GHashTable              *metadata;
        GdkPixbuf               *pixbuf;
-       GdkPixbuf               *featured_pixbuf;
        GPtrArray               *addons; /* of GsApp */
        GHashTable              *addons_hash; /* of "id" */
        GPtrArray               *related; /* of GsApp */
@@ -292,8 +291,6 @@ gs_app_to_string (GsApp *app)
                g_string_append_printf (str, "\trating:\t%i\n", app->rating);
        if (app->pixbuf != NULL)
                g_string_append_printf (str, "\tpixbuf:\t%p\n", app->pixbuf);
-       if (app->featured_pixbuf != NULL)
-               g_string_append_printf (str, "\tfeatured-pixbuf:\t%p\n", app->featured_pixbuf);
        if (app->install_date != 0) {
                g_string_append_printf (str, "\tinstall-date:\t%"
                                        G_GUINT64_FORMAT "\n",
@@ -1011,27 +1008,6 @@ gs_app_set_pixbuf (GsApp *app, GdkPixbuf *pixbuf)
        g_set_object (&app->pixbuf, pixbuf);
 }
 
-/**
- * gs_app_get_featured_pixbuf:
- */
-GdkPixbuf *
-gs_app_get_featured_pixbuf (GsApp *app)
-{
-       g_return_val_if_fail (GS_IS_APP (app), NULL);
-       return app->featured_pixbuf;
-}
-
-/**
- * gs_app_set_featured_pixbuf:
- */
-void
-gs_app_set_featured_pixbuf (GsApp *app, GdkPixbuf *pixbuf)
-{
-       g_return_if_fail (GS_IS_APP (app));
-       g_return_if_fail (app->featured_pixbuf == NULL);
-       app->featured_pixbuf = g_object_ref (pixbuf);
-}
-
 typedef enum {
        GS_APP_VERSION_FIXUP_RELEASE            = 1,
        GS_APP_VERSION_FIXUP_DISTRO_SUFFIX      = 2,
@@ -2232,7 +2208,6 @@ gs_app_dispose (GObject *object)
 {
        GsApp *app = GS_APP (object);
 
-       g_clear_object (&app->featured_pixbuf);
        g_clear_object (&app->icon);
        g_clear_object (&app->pixbuf);
 
diff --git a/src/gs-app.h b/src/gs-app.h
index 2da2515..e9b63b6 100644
--- a/src/gs-app.h
+++ b/src/gs-app.h
@@ -188,9 +188,6 @@ void                 gs_app_set_icon                (GsApp          *app,
 gboolean        gs_app_load_icon               (GsApp          *app,
                                                 gint            scale,
                                                 GError         **error);
-GdkPixbuf      *gs_app_get_featured_pixbuf     (GsApp          *app);
-void            gs_app_set_featured_pixbuf     (GsApp          *app,
-                                                GdkPixbuf      *pixbuf);
 const gchar    *gs_app_get_metadata_item       (GsApp          *app,
                                                 const gchar    *key);
 void            gs_app_set_metadata            (GsApp          *app,


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