summaryrefslogtreecommitdiff
path: root/web/lib
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2012-01-23 11:01:02 +0100
committerJochen Topf <jochen@topf.org>2012-01-23 11:01:02 +0100
commitb303dc6236601ed3927c2cb53806c3b6fee7f344 (patch)
tree43be5ac289ca83b5f72288fa8979d38ca9c9c4c3 /web/lib
parentbefc3243e5ec2679119834cf847dfc27ef98b3a2 (diff)
downloadtaginfo-b303dc6236601ed3927c2cb53806c3b6fee7f344.tar
taginfo-b303dc6236601ed3927c2cb53806c3b6fee7f344.tar.gz
remove unneeded function
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/utils.rb13
1 files changed, 0 insertions, 13 deletions
diff --git a/web/lib/utils.rb b/web/lib/utils.rb
index 592b3ee..dee90c7 100644
--- a/web/lib/utils.rb
+++ b/web/lib/utils.rb
@@ -76,23 +76,10 @@ def external_link(id, title, link, new_window=false)
end
def tagcloud_size(tag)
- #(Math.log(0.000001 + tag['scale'].to_f * Math::E) * 36 + 12).to_i
x = tag['scale1'].to_f / 17 / 2 + tag['pos'] / 2
(x * 32 + 10).to_i
end
-def tagcloud_color(tag)
- c = 0xa0;
- if tag['in_wiki'].to_i == 1
- c -= 0x40;
- end
- if tag['in_josm'].to_i == 1
- c -= 0x60;
- end
- sprintf('#%02x%02x%02x', c, c, c)
- c = '#000000';
-end
-
def get_filter
f = params[:filter].to_s == '' ? 'all' : params[:filter]
if f !~ /^(all|nodes|ways|relations)$/