]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/site_controller.rb
Remove never actually used code from five years ago
[rails.git] / app / controllers / site_controller.rb
index 94cc647543c0ff526d4a5cc4d93a6b6b014f278c..280f39fd8c32b597b7cbc13094044e5827033d02 100644 (file)
@@ -53,6 +53,10 @@ class SiteController < ApplicationController
       bbox = Way.find(params[:way]).bbox.to_unscaled
       @lat = bbox.centre_lat
       @lon = bbox.centre_lon
+    elsif params[:note]
+      note = Note.find(params[:note])
+      @lat = note.lat
+      @lon = note.lon
     elsif params[:gpx]
       trace = Trace.visible_to(@user).find(params[:gpx])
       @lat = trace.latitude