[gnome-desktop] thumbnail: Remove _has_uri() helper function
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-desktop] thumbnail: Remove _has_uri() helper function
- Date: Thu, 1 Feb 2018 15:18:14 +0000 (UTC)
commit 2470576276718b3a0bc69f74732762837e5cf7f0
Author: Bastien Nocera <hadess hadess net>
Date: Wed Jan 17 15:26:20 2018 +0100
thumbnail: Remove _has_uri() helper function
Nothing in Debian uses it, which is a pretty good indicator that it's
not actually needed:
https://codesearch.debian.net/search?q=gnome_desktop_thumbnail_has_uri&page=1&perpkg=1
libgnome-desktop/gnome-desktop-thumbnail.c | 23 -----------------------
libgnome-desktop/gnome-desktop-thumbnail.h | 2 --
2 files changed, 0 insertions(+), 25 deletions(-)
---
diff --git a/libgnome-desktop/gnome-desktop-thumbnail.c b/libgnome-desktop/gnome-desktop-thumbnail.c
index c16617b..ae1af54 100644
--- a/libgnome-desktop/gnome-desktop-thumbnail.c
+++ b/libgnome-desktop/gnome-desktop-thumbnail.c
@@ -1262,29 +1262,6 @@ gnome_desktop_thumbnail_path_for_uri (const char *uri,
}
/**
- * gnome_desktop_thumbnail_has_uri:
- * @pixbuf: an loaded thumbnail pixbuf
- * @uri: a uri
- *
- * Returns whether the thumbnail has the correct uri embedded in the
- * Thumb::URI option in the png.
- *
- * Return value: TRUE if the thumbnail is for @uri
- *
- * Since: 2.2
- **/
-gboolean
-gnome_desktop_thumbnail_has_uri (GdkPixbuf *pixbuf,
- const char *uri)
-{
- const char *thumb_uri;
-
- thumb_uri = gdk_pixbuf_get_option (pixbuf, "tEXt::Thumb::URI");
-
- return (g_strcmp0 (uri, thumb_uri) == 0);
-}
-
-/**
* gnome_desktop_thumbnail_is_valid:
* @pixbuf: an loaded thumbnail #GdkPixbuf
* @uri: a uri
diff --git a/libgnome-desktop/gnome-desktop-thumbnail.h b/libgnome-desktop/gnome-desktop-thumbnail.h
index 96abb58..186534f 100644
--- a/libgnome-desktop/gnome-desktop-thumbnail.h
+++ b/libgnome-desktop/gnome-desktop-thumbnail.h
@@ -91,8 +91,6 @@ void gnome_desktop_thumbnail_factory_create_failed_thumbnail (
/* Thumbnailing utils: */
-gboolean gnome_desktop_thumbnail_has_uri (GdkPixbuf *pixbuf,
- const char *uri);
gboolean gnome_desktop_thumbnail_is_valid (GdkPixbuf *pixbuf,
const char *uri,
time_t mtime);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]