From 4b3d4782ce60dc0c0524831e7b202765d787a401 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 13 Mar 2014 16:01:17 +0000 Subject: [PATCH] Remove unused file --- app/views/api/map.xml.builder | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 app/views/api/map.xml.builder diff --git a/app/views/api/map.xml.builder b/app/views/api/map.xml.builder deleted file mode 100644 index a62c481f4..000000000 --- a/app/views/api/map.xml.builder +++ /dev/null @@ -1,32 +0,0 @@ -# Note that this file is currently unused -# I (xin@zxv.ltd.uk) suspect this is slower than using OSM module, which in turn uses libxml -# it will be good to output xml this way eventually. -xml.instruct! :xml, :version=>"1.0" -xml.osm("version" => "0.5", "generator" => "OpenStreetMap Server") do - @nodes.each do |node| - xml.tag! "node",:id => node.id, - :lat => node.lat, - :lon => node.lon, - :user => node.user_display_name, - :visible => node.visible, - :timestamp => node.timestamp.xmlschema do - node.tags.each do |tag| - k,v = tag.split('=') - xml.tag! "tag",:k => k, :v => v - end - end - end - @ways.each do |way| - xml.tag! "way", :id => way.id, - :user => way.user_display_name, - :visible => way.visible, - :timestamp => way.timestamp.xmlschema do - way.nds.each do |nd| - xml.tag! "nd", :ref => nd - end - - end - - - end -end -- 2.43.2