[gtk+] Drop gtk_css_image_surface_new_for_pixbuf



commit 2ac0df0b754e626ddf7c46b114c9f1024ddf6067
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Nov 29 19:47:57 2017 -0500

    Drop gtk_css_image_surface_new_for_pixbuf
    
    It is unused private api.

 gtk/gtkcssimagesurface.c        |   16 ----------------
 gtk/gtkcssimagesurfaceprivate.h |    1 -
 2 files changed, 0 insertions(+), 17 deletions(-)
---
diff --git a/gtk/gtkcssimagesurface.c b/gtk/gtkcssimagesurface.c
index 9ab6115..202d850 100644
--- a/gtk/gtkcssimagesurface.c
+++ b/gtk/gtkcssimagesurface.c
@@ -112,19 +112,3 @@ gtk_css_image_surface_new (GdkTexture *texture)
 
   return image;
 }
-
-GtkCssImage *
-gtk_css_image_surface_new_for_pixbuf (GdkPixbuf *pixbuf)
-{
-  GtkCssImage *image;
-  GdkTexture *texture;
-
-  g_return_val_if_fail (GDK_IS_PIXBUF (pixbuf), NULL);
-
-  texture = gdk_texture_new_for_pixbuf (pixbuf);
-  image = gtk_css_image_surface_new (texture);
-  g_object_unref (texture);
-
-  return image;
-}
-
diff --git a/gtk/gtkcssimagesurfaceprivate.h b/gtk/gtkcssimagesurfaceprivate.h
index 9575e78..e820a08 100644
--- a/gtk/gtkcssimagesurfaceprivate.h
+++ b/gtk/gtkcssimagesurfaceprivate.h
@@ -49,7 +49,6 @@ struct _GtkCssImageSurfaceClass
 GType          _gtk_css_image_surface_get_type             (void) G_GNUC_CONST;
 
 GtkCssImage *  gtk_css_image_surface_new                   (GdkTexture      *texture);
-GtkCssImage *  gtk_css_image_surface_new_for_pixbuf        (GdkPixbuf       *pixbuf);
 
 G_END_DECLS
 


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