]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/tracepoint.rb
Merge remote-tracking branch 'upstream/pull/3482'
[rails.git] / app / models / tracepoint.rb
index 6352824fd7f08c3c50f781c95c80837c10302aab..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