[gnome-software: 16/22] gs-common: Drop unused utility function




commit 576c368b0f112fc7fbd989492e9e1d9b9eefb7da
Author: Philip Withnall <pwithnall endlessos org>
Date:   Wed Feb 17 20:03:52 2021 +0000

    gs-common: Drop unused utility function
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>

 src/gs-common.c | 8 --------
 src/gs-common.h | 2 --
 2 files changed, 10 deletions(-)
---
diff --git a/src/gs-common.c b/src/gs-common.c
index 2258a2ad5..7545a3716 100644
--- a/src/gs-common.c
+++ b/src/gs-common.c
@@ -322,14 +322,6 @@ gs_image_set_from_pixbuf_with_scale (GtkImage *image, const GdkPixbuf *pixbuf, g
        cairo_surface_destroy (surface);
 }
 
-void
-gs_image_set_from_pixbuf (GtkImage *image, const GdkPixbuf *pixbuf)
-{
-       gint scale;
-       scale = gdk_pixbuf_get_width (pixbuf) / 64;
-       gs_image_set_from_pixbuf_with_scale (image, pixbuf, scale);
-}
-
 gboolean
 gs_utils_is_current_desktop (const gchar *name)
 {
diff --git a/src/gs-common.h b/src/gs-common.h
index bd9a82a63..068e36086 100644
--- a/src/gs-common.h
+++ b/src/gs-common.h
@@ -29,8 +29,6 @@ GtkResponseType
 void   gs_image_set_from_pixbuf_with_scale     (GtkImage               *image,
                                                 const GdkPixbuf        *pixbuf,
                                                 gint                    scale);
-void   gs_image_set_from_pixbuf                (GtkImage               *image,
-                                                const GdkPixbuf        *pixbuf);
 
 gboolean        gs_utils_is_current_desktop    (const gchar    *name);
 gchar          *gs_utils_set_key_colors_in_css (const gchar    *css,


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