]> git.openstreetmap.org Git - rails.git/blobdiff - lib/diff_reader.rb
Merge remote-tracking branch 'upstream/pull/4735'
[rails.git] / lib / diff_reader.rb
index 1189c86d0e3236307ec4f4fdb50d42c7c5ecc150..2784646afecbcf6fbcca3c02141bbd6671a3b75f 100644 (file)
@@ -4,8 +4,6 @@
 # Uses the streaming LibXML "Reader" interface to cut down on memory
 # usage, so hopefully we can process fairly large diffs.
 class DiffReader
-  include ConsistencyValidations
-
   # maps each element type to the model class which handles it
   MODELS = {
     "node" => Node,
@@ -128,7 +126,7 @@ class DiffReader
     @reader.read
     raise OSM::APIBadUserInput, "Document element should be 'osmChange'." if @reader.name != "osmChange"
 
-    result = OSM::API.new.get_xml_doc
+    result = OSM::API.new.xml_doc
     result.root.name = "diffResult"
 
     # loop at the top level, within the <osmChange> element