[nautilus] icon-info: remove unused code



commit c40521ffbc4e990e4633be41e730b28eec26f1f5
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Feb 21 17:42:38 2011 -0500

    icon-info: remove unused code

 libnautilus-private/nautilus-icon-info.c |   54 ------------------------------
 libnautilus-private/nautilus-icon-info.h |    4 --
 2 files changed, 0 insertions(+), 58 deletions(-)
---
diff --git a/libnautilus-private/nautilus-icon-info.c b/libnautilus-private/nautilus-icon-info.c
index 6d6e151..679057d 100644
--- a/libnautilus-private/nautilus-icon-info.c
+++ b/libnautilus-private/nautilus-icon-info.c
@@ -623,60 +623,6 @@ nautilus_get_icon_size_for_zoom_level (NautilusZoomLevel zoom_level)
 	g_return_val_if_reached (NAUTILUS_ICON_SIZE_STANDARD);
 }
 
-float
-nautilus_get_relative_icon_size_for_zoom_level (NautilusZoomLevel zoom_level)
-{
-	return (float)nautilus_get_icon_size_for_zoom_level (zoom_level) / NAUTILUS_ICON_SIZE_STANDARD;
-}
-
-guint
-nautilus_icon_get_larger_icon_size (guint size)
-{
-	if (size < NAUTILUS_ICON_SIZE_SMALLEST) {
-		return NAUTILUS_ICON_SIZE_SMALLEST;
-	}
-	if (size < NAUTILUS_ICON_SIZE_SMALLER) {
-		return NAUTILUS_ICON_SIZE_SMALLER;
-	}
-	if (size < NAUTILUS_ICON_SIZE_SMALL) {
-		return NAUTILUS_ICON_SIZE_SMALL;
-	}
-	if (size < NAUTILUS_ICON_SIZE_STANDARD) {
-		return NAUTILUS_ICON_SIZE_STANDARD;
-	}
-	if (size < NAUTILUS_ICON_SIZE_LARGE) {
-		return NAUTILUS_ICON_SIZE_LARGE;
-	}
-	if (size < NAUTILUS_ICON_SIZE_LARGER) {
-		return NAUTILUS_ICON_SIZE_LARGER;
-	}
-	return NAUTILUS_ICON_SIZE_LARGEST;
-}
-
-guint
-nautilus_icon_get_smaller_icon_size (guint size)
-{
-	if (size > NAUTILUS_ICON_SIZE_LARGEST) {
-		return NAUTILUS_ICON_SIZE_LARGEST;
-	}
-	if (size > NAUTILUS_ICON_SIZE_LARGER) {
-		return NAUTILUS_ICON_SIZE_LARGER;
-	}
-	if (size > NAUTILUS_ICON_SIZE_LARGE) {
-		return NAUTILUS_ICON_SIZE_LARGE;
-	}
-	if (size > NAUTILUS_ICON_SIZE_STANDARD) {
-		return NAUTILUS_ICON_SIZE_STANDARD;
-	}
-	if (size > NAUTILUS_ICON_SIZE_SMALL) {
-		return NAUTILUS_ICON_SIZE_SMALL;
-	}
-	if (size > NAUTILUS_ICON_SIZE_SMALLER) {
-		return NAUTILUS_ICON_SIZE_SMALLER;
-	}
-	return NAUTILUS_ICON_SIZE_SMALLEST;
-}
-
 gint
 nautilus_get_icon_size_for_stock_size (GtkIconSize size)
 {
diff --git a/libnautilus-private/nautilus-icon-info.h b/libnautilus-private/nautilus-icon-info.h
index 8e70381..3ef41c6 100644
--- a/libnautilus-private/nautilus-icon-info.h
+++ b/libnautilus-private/nautilus-icon-info.h
@@ -79,10 +79,6 @@ void                  nautilus_icon_info_clear_caches                 (void);
 
 /* Relationship between zoom levels and icons sizes. */
 guint nautilus_get_icon_size_for_zoom_level          (NautilusZoomLevel  zoom_level);
-float nautilus_get_relative_icon_size_for_zoom_level (NautilusZoomLevel  zoom_level);
-
-guint nautilus_icon_get_larger_icon_size             (guint              size);
-guint nautilus_icon_get_smaller_icon_size            (guint              size);
 
 gint  nautilus_get_icon_size_for_stock_size          (GtkIconSize        size);
 guint nautilus_icon_get_emblem_size_for_icon_size    (guint              size);



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