]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/tracepoint.rb
Move the tracepoint coordinate format test to the controller test
[rails.git] / app / models / tracepoint.rb
index 000f257b4eba0f683db3c0af4c974fe80aa9015d..b3c37430d8624a0c61d419e1b8e2ae9bec23e3d6 100644 (file)
@@ -31,12 +31,4 @@ class Tracepoint < ApplicationRecord
   validates :timestamp, :presence => true
 
   belongs_to :trace, :foreign_key => "gpx_id"
-
-  def to_xml_node(print_timestamp: false)
-    el1 = XML::Node.new "trkpt"
-    el1["lat"] = lat.to_s
-    el1["lon"] = lon.to_s
-    el1 << (XML::Node.new("time") << timestamp.xmlschema) if print_timestamp
-    el1
-  end
 end