[evince] thumbnailer: Remove unused code
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] thumbnailer: Remove unused code
- Date: Sun, 24 Jun 2012 10:09:40 +0000 (UTC)
commit 171918fbaf52d2330d78d8841d25ffd5f41b9efc
Author: Christian Persch <chpe gnome org>
Date: Tue Jun 12 20:07:20 2012 +0200
thumbnailer: Remove unused code
The code to overlay an icon is unused since commit 808285c968d09e3be2a159cd304346c180763d54.
thumbnailer/Makefile.am | 3 ---
thumbnailer/evince-thumbnailer.c | 34 ----------------------------------
2 files changed, 0 insertions(+), 37 deletions(-)
---
diff --git a/thumbnailer/Makefile.am b/thumbnailer/Makefile.am
index d7e5ae5..d3dea79 100644
--- a/thumbnailer/Makefile.am
+++ b/thumbnailer/Makefile.am
@@ -5,11 +5,8 @@ evince_thumbnailer_SOURCES = \
evince-thumbnailer.c
evince_thumbnailer_CPPFLAGS = \
- -DEVINCEDATADIR=\"$(pkgdatadir)\" \
-I$(top_srcdir) \
-I$(top_builddir) \
- -DGNOMELOCALEDIR=\"$(datadir)/locale\" \
- -DGNOMEICONDIR=\""$(datadir)/pixmaps"\" \
$(AM_CPPFLAGS)
evince_thumbnailer_CFLAGS = \
diff --git a/thumbnailer/evince-thumbnailer.c b/thumbnailer/evince-thumbnailer.c
index 08ff649..b17edba 100644
--- a/thumbnailer/evince-thumbnailer.c
+++ b/thumbnailer/evince-thumbnailer.c
@@ -183,40 +183,6 @@ evince_thumbnail_pngenc_get (EvDocument *document, const char *thumbnail, int si
g_object_unref (page);
if (pixbuf != NULL) {
- const char *overlaid_icon_name = NULL;
-
- if (overlaid_icon_name) {
- GdkPixbuf *overlaid_pixbuf;
-
-#ifdef G_OS_WIN32
- gchar *dir = g_win32_get_package_installation_directory_of_module (NULL);
- gchar *overlaid_icon_path = g_build_filename (dir, "share", "evince", overlaid_icon_name, NULL);
- g_free (dir);
-#else
- gchar *overlaid_icon_path = g_strdup_printf ("%s/%s", EVINCEDATADIR, overlaid_icon_name);
-#endif
- overlaid_pixbuf = gdk_pixbuf_new_from_file (overlaid_icon_path, NULL);
- g_free (overlaid_icon_path);
- if (overlaid_pixbuf != NULL) {
- int delta_height, delta_width;
-
- delta_width = gdk_pixbuf_get_width (pixbuf) -
- gdk_pixbuf_get_width (overlaid_pixbuf);
- delta_height = gdk_pixbuf_get_height (pixbuf) -
- gdk_pixbuf_get_height (overlaid_pixbuf);
-
- gdk_pixbuf_composite (overlaid_pixbuf, pixbuf,
- delta_width, delta_height,
- gdk_pixbuf_get_width (overlaid_pixbuf),
- gdk_pixbuf_get_height (overlaid_pixbuf),
- delta_width, delta_height,
- 1, 1,
- GDK_INTERP_NEAREST, 100);
-
- g_object_unref (overlaid_pixbuf);
- }
- }
-
if (gdk_pixbuf_save (pixbuf, thumbnail, "png", NULL, NULL)) {
g_object_unref (pixbuf);
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]