[f-spot] Remove some unused code from libfspot.
- From: Ruben Vermeersch <rubenv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot] Remove some unused code from libfspot.
- Date: Sun, 26 Dec 2010 21:33:33 +0000 (UTC)
commit 72e22764c63d8029b7871de8f00f123d193e747a
Author: Ruben Vermeersch <ruben savanne be>
Date: Sun Dec 26 22:31:18 2010 +0100
Remove some unused code from libfspot.
lib/libfspot/f-pixbuf-utils.c | 41 -----------------------------------------
lib/libfspot/f-pixbuf-utils.h | 12 ------------
2 files changed, 0 insertions(+), 53 deletions(-)
---
diff --git a/lib/libfspot/f-pixbuf-utils.c b/lib/libfspot/f-pixbuf-utils.c
index bc5090a..0599018 100644
--- a/lib/libfspot/f-pixbuf-utils.c
+++ b/lib/libfspot/f-pixbuf-utils.c
@@ -46,47 +46,6 @@
/* Public functions. */
-int
-f_pixbuf_get_image_size (GdkPixbuf *pixbuf)
-{
- int width, height;
-
- width = gdk_pixbuf_get_width (pixbuf);
- height = gdk_pixbuf_get_height (pixbuf);
-
- return MAX (width, height);
-}
-
-int
-f_pixbuf_get_scaled_width (GdkPixbuf *pixbuf,
- int size)
-{
- int orig_width, orig_height;
-
- orig_width = gdk_pixbuf_get_width (pixbuf);
- orig_height = gdk_pixbuf_get_height (pixbuf);
-
- if (orig_width > orig_height)
- return size;
- else
- return size * ((double) orig_width / orig_height);
-}
-
-int
-f_pixbuf_get_scaled_height (GdkPixbuf *pixbuf,
- int size)
-{
- int orig_width, orig_height;
-
- orig_width = gdk_pixbuf_get_width (pixbuf);
- orig_height = gdk_pixbuf_get_height (pixbuf);
-
- if (orig_width > orig_height)
- return size * ((double) orig_height / orig_width);
- else
- return size;
-}
-
cairo_surface_t *
f_pixbuf_to_cairo_surface (GdkPixbuf *pixbuf)
{
diff --git a/lib/libfspot/f-pixbuf-utils.h b/lib/libfspot/f-pixbuf-utils.h
index a0ae7dd..bc29b52 100644
--- a/lib/libfspot/f-pixbuf-utils.h
+++ b/lib/libfspot/f-pixbuf-utils.h
@@ -26,16 +26,4 @@
#include <gdk-pixbuf/gdk-pixbuf.h>
-
-/* Return the largest between height and width of the specified PIXBUF. */
-int f_pixbuf_get_image_size (GdkPixbuf *pixbuf);
-
-/* Return the normalized width for the specified PIXBUF at the specified
- thumbnail SIZE. */
-int f_pixbuf_get_scaled_width (GdkPixbuf *pixbuf, int size);
-
-/* Return the normalized height for the specified PIXBUF at the specified
- thumbnail SIZE. */
-int f_pixbuf_get_scaled_height (GdkPixbuf *pixbuf, int size);
-
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]