diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2011-02-21 17:42:38 -0500 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2011-02-21 22:14:07 -0500 |
commit | c40521ffbc4e990e4633be41e730b28eec26f1f5 (patch) | |
tree | 0a62c2d60129fc99b6a71540b3ae0ce250531b96 /libnautilus-private/nautilus-icon-info.c | |
parent | 150b95ca0c668568e0e5d04701048d6f1fc1636b (diff) | |
download | nautilus-c40521ffbc4e990e4633be41e730b28eec26f1f5.tar.gz |
icon-info: remove unused code
Diffstat (limited to 'libnautilus-private/nautilus-icon-info.c')
-rw-r--r-- | libnautilus-private/nautilus-icon-info.c | 54 |
1 files changed, 0 insertions, 54 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) { |