From df9566d14894da0f664a4d50b35b50358a5d84ce Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Sun, 15 Mar 2015 17:52:20 +0100 Subject: Remove unused javascript functions. --- web/public/js/taginfo.js | 33 --------------------------------- 1 file changed, 33 deletions(-) (limited to 'web') diff --git a/web/public/js/taginfo.js b/web/public/js/taginfo.js index 1d3994f..8a5894e 100644 --- a/web/public/js/taginfo.js +++ b/web/public/js/taginfo.js @@ -362,39 +362,6 @@ function fmt_type_icon(type, on_or_off) { }) + ' '; } -function fmt_josm_value(key, value, value_bool) { - return value ? link_to_value(key, value) : value_bool ? (html_escape(value_bool) + ' (Boolean)') : '*'; -} - -function fmt_josm_icon(style, icon) { - if (!icon) return ''; - - return img({ - src: '/api/4/josm/style/image?style=' + encodeURIComponent(style) + '&image=' + encodeURIComponent(icon), - title: html_escape(icon), - alt: '' - }); -} - -function fmt_josm_line(width, color) { - var inner = ''; - if (width > 0) { - inner = tag('div', '', { - title: html_escape(color), - style: style({ height: width + 'px', 'margin-top': (10 - Math.round(width/2)) + 'px', padding: 0, 'background-color': color }) - }); - } - return tag('div', inner); -} - -function fmt_josm_area(color) { - if (!color) return ''; - - return tag('div', '', { - title: html_escape(color), - style: style({ height: '18px', 'background-color': color }) - }); -} function fmt_type_image(type) { type = type.replace(/s$/, ''); -- cgit v1.2.3