From e85c15adb47612a88aa38b241d081384a86be09f Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Sat, 1 Dec 2012 14:42:56 -0800 Subject: [PATCH] Remove unused --- js/id/renderer/map.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/js/id/renderer/map.js b/js/id/renderer/map.js index 26a57cad1..0b2839741 100644 --- a/js/id/renderer/map.js +++ b/js/id/renderer/map.js @@ -79,7 +79,6 @@ iD.Map = function(elem, connection) { return ''; } function ll2a(o) { return [o.lon, o.lat]; } - function a2ll(o) { return { lon: o[0], lat: o[1] }; } function roundCoords(c) { return [Math.floor(c[0]), Math.floor(c[1])]; } function hideInspector() { @@ -101,8 +100,7 @@ iD.Map = function(elem, connection) { function drawVector(only) { if (surface.style(transformProp) != 'none') return; - var z = map.zoom(), - all = [], ways = [], areas = [], points = [], waynodes = [], + var all = [], ways = [], areas = [], points = [], waynodes = [], extent = map.extent(), graph = map.history.graph(); @@ -331,7 +329,7 @@ iD.Map = function(elem, connection) { if (entity) d3.select('.messages').text(entity[0].tags.name || '#' + entity[0].id); } - function nameHoverOut(d) { d3.select('.messages').text(''); } + function nameHoverOut() { d3.select('.messages').text(''); } function deselectClick() { var hadSelection = !!selection; @@ -516,7 +514,6 @@ iD.Map = function(elem, connection) { apiTilesLoaded = {}; }; - map.download = download; map.surface = surface; map.background = background; map.projection = projection;