diff options
-rw-r--r-- | libnautilus-private/nautilus-icon-info.c | 54 | ||||
-rw-r--r-- | 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 6d6e15192..679057d65 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 8e70381c5..3ef41c637 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); |