summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-icon-info.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2011-02-21 17:42:38 -0500
committerCosimo Cecchi <cosimoc@gnome.org>2011-02-21 22:14:07 -0500
commitc40521ffbc4e990e4633be41e730b28eec26f1f5 (patch)
tree0a62c2d60129fc99b6a71540b3ae0ce250531b96 /libnautilus-private/nautilus-icon-info.c
parent150b95ca0c668568e0e5d04701048d6f1fc1636b (diff)
downloadnautilus-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.c54
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)
{