From: Tom Hughes Date: Sun, 23 Sep 2012 14:07:35 +0000 (+0100) Subject: Remove redundant code X-Git-Tag: live~5068^2~100 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/90fe21a04a709db10935327172a5a93869fabd8b Remove redundant code --- diff --git a/app/assets/javascripts/notes.js.erb b/app/assets/javascripts/notes.js.erb index 4df32264c..01264bcb6 100644 --- a/app/assets/javascripts/notes.js.erb +++ b/app/assets/javascripts/notes.js.erb @@ -1,12 +1,6 @@ function addNoteLayer(map, notesUrl, newNoteControls, newNoteForm, minZoom) { var newNotes; - var noteCallback = function (scope, response) { - for (var f = 0; f < response.features.length; f++) { - var feature = response.features[f]; - } - }; - var saveNewNotes = function (o) { var layer = o.object; newNotes = layer.getFeaturesByAttribute("status", "new") @@ -167,8 +161,7 @@ function addNoteLayer(map, notesUrl, newNoteControls, newNoteForm, minZoom) { ], protocol: new OpenLayers.Protocol.HTTP({ url: notesUrl, - format: new OpenLayers.Format.GeoJSON(), - callback: noteCallback + format: new OpenLayers.Format.GeoJSON() }) });