[gnome-photos/wip/rishi/misc-fixes: 9/9] utils: Remove photos_utils_get_pixbuf_type_from_mime_type



commit bf09d1c87aa921c7a6c2f7294d0d54da746e5eee
Author: Debarshi Ray <debarshir gnome org>
Date:   Sat Jan 2 16:58:15 2016 +0100

    utils: Remove photos_utils_get_pixbuf_type_from_mime_type

 src/photos-utils.c |   35 -----------------------------------
 src/photos-utils.h |    2 --
 2 files changed, 0 insertions(+), 37 deletions(-)
---
diff --git a/src/photos-utils.c b/src/photos-utils.c
index 76f63bd..8676f01 100644
--- a/src/photos-utils.c
+++ b/src/photos-utils.c
@@ -1037,41 +1037,6 @@ photos_utils_get_pixbuf_common_suffix (GdkPixbufFormat *format)
 }
 
 
-gchar *
-photos_utils_get_pixbuf_type_from_mime_type (const gchar *mime_type)
-{
-  GSList *formats;
-  GSList *l;
-  gchar *ret_val = NULL;
-
-  formats = gdk_pixbuf_get_formats ();
-
-  for (l = formats; l != NULL; l = l->next)
-    {
-      GdkPixbufFormat *format = (GdkPixbufFormat*) l->data;
-      gchar **supported_mime_types;
-      guint i;
-
-      supported_mime_types = gdk_pixbuf_format_get_mime_types (format);
-      for (i = 0; supported_mime_types[i] != NULL; i++)
-        {
-          if (g_strcmp0 (mime_type, supported_mime_types[i]) == 0)
-            {
-              ret_val = gdk_pixbuf_format_get_name (format);
-              break;
-            }
-        }
-
-      g_strfreev (supported_mime_types);
-      if (ret_val != NULL)
-        break;
-    }
-
-  g_slist_free (formats);
-  return ret_val;
-}
-
-
 const gchar *
 photos_utils_get_provider_name (PhotosBaseManager *src_mngr, PhotosBaseItem *item)
 {
diff --git a/src/photos-utils.h b/src/photos-utils.h
index 487521d..93e10dd 100644
--- a/src/photos-utils.h
+++ b/src/photos-utils.h
@@ -136,8 +136,6 @@ gint             photos_utils_get_icon_size_unscaled      (void);
 
 char*            photos_utils_get_pixbuf_common_suffix    (GdkPixbufFormat *format);
 
-gchar           *photos_utils_get_pixbuf_type_from_mime_type (const gchar *mime_type);
-
 const gchar     *photos_utils_get_provider_name           (PhotosBaseManager *src_mngr, PhotosBaseItem 
*item);
 
 GtkBorder       *photos_utils_get_thumbnail_frame_border  (void);


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