[gtk+] image: Remove unused code



commit 8a7dbe5f36a196660ea452e9772b2aeacd9b6c2e
Author: Benjamin Otte <otte redhat com>
Date:   Wed Dec 2 14:56:15 2015 +0100

    image: Remove unused code
    
    I wonder how long that stuff has existed and not been used...

 gtk/gtkimage.c        |   15 ---------------
 gtk/gtkimageprivate.h |   43 -------------------------------------------
 2 files changed, 0 insertions(+), 58 deletions(-)
---
diff --git a/gtk/gtkimage.c b/gtk/gtkimage.c
index 58a46c0..30b634c 100644
--- a/gtk/gtkimage.c
+++ b/gtk/gtkimage.c
@@ -1911,21 +1911,6 @@ gtk_image_screen_changed (GtkWidget *widget,
   icon_theme_changed (image);
 }
 
-void
-_gtk_image_gicon_data_clear (GtkImageGIconData *data)
-{
-  if (data->pixbuf)
-    {
-      g_object_unref (data->pixbuf);
-      data->pixbuf = NULL;
-    }
-  if (data->icon)
-    {
-      g_object_unref (data->icon);
-      data->icon = NULL;
-    }
-}
-
 /**
  * gtk_image_set_pixel_size:
  * @image: a #GtkImage
diff --git a/gtk/gtkimageprivate.h b/gtk/gtkimageprivate.h
index 6e78bdc..c734ee8 100644
--- a/gtk/gtkimageprivate.h
+++ b/gtk/gtkimageprivate.h
@@ -31,49 +31,6 @@
 
 G_BEGIN_DECLS
 
-typedef struct _GtkImagePixbufData  GtkImagePixbufData;
-typedef struct _GtkImageStockData   GtkImageStockData;
-typedef struct _GtkImageIconSetData GtkImageIconSetData;
-typedef struct _GtkImageAnimationData GtkImageAnimationData;
-typedef struct _GtkImageIconNameData  GtkImageIconNameData;
-typedef struct _GtkImageGIconData     GtkImageGIconData;
-
-struct _GtkImagePixbufData
-{
-  GdkPixbuf *pixbuf;
-};
-
-struct _GtkImageStockData
-{
-  gchar *stock_id;
-};
-
-struct _GtkImageIconSetData
-{
-  GtkIconSet *icon_set;
-};
-
-struct _GtkImageAnimationData
-{
-  GdkPixbufAnimation *anim;
-  GdkPixbufAnimationIter *iter;
-  guint frame_timeout;
-};
-
-struct _GtkImageIconNameData
-{
-  gchar *icon_name;
-  GdkPixbuf *pixbuf;
-  guint theme_change_id;
-};
-
-struct _GtkImageGIconData
-{
-  GIcon *icon;
-  GdkPixbuf *pixbuf;
-};
-
-void _gtk_image_gicon_data_clear (GtkImageGIconData *data);
 
 G_END_DECLS
 


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