From: Anton Khorev <tony29@yandex.ru>
Date: Thu, 28 Mar 2024 08:49:49 +0000 (+0300)
Subject: Remove unused includes of ConsistencyValidations
X-Git-Tag: live~1605^2
X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/16cc2e75a7c362f28cbcf617fd10baabe9f14d96
Remove unused includes of ConsistencyValidations
---
diff --git a/app/controllers/changesets_controller.rb b/app/controllers/changesets_controller.rb
index 613a3ee2a..50eb01800 100644
--- a/app/controllers/changesets_controller.rb
+++ b/app/controllers/changesets_controller.rb
@@ -16,9 +16,6 @@ class ChangesetsController < ApplicationController
 
   around_action :web_timeout
 
-  # Helper methods for checking consistency
-  include ConsistencyValidations
-
   ##
   # list non-empty changesets in reverse chronological order
   def index
diff --git a/app/models/old_node.rb b/app/models/old_node.rb
index 3ec5cd415..b323f0b4f 100644
--- a/app/models/old_node.rb
+++ b/app/models/old_node.rb
@@ -26,7 +26,6 @@
 
 class OldNode < ApplicationRecord
   include GeoRecord
-  include ConsistencyValidations
 
   self.table_name = "nodes"
 
diff --git a/app/models/old_relation.rb b/app/models/old_relation.rb
index 5ff12fd58..7d5a3fbb4 100644
--- a/app/models/old_relation.rb
+++ b/app/models/old_relation.rb
@@ -21,8 +21,6 @@
 #
 
 class OldRelation < ApplicationRecord
-  include ConsistencyValidations
-
   self.table_name = "relations"
 
   # NOTE: this needs to be included after the table name changes, or
diff --git a/app/models/old_way.rb b/app/models/old_way.rb
index a55d3ed00..8577330c5 100644
--- a/app/models/old_way.rb
+++ b/app/models/old_way.rb
@@ -21,8 +21,6 @@
 #
 
 class OldWay < ApplicationRecord
-  include ConsistencyValidations
-
   self.table_name = "ways"
 
   # NOTE: this needs to be included after the table name changes, or
diff --git a/lib/diff_reader.rb b/lib/diff_reader.rb
index d1987a936..2784646af 100644
--- a/lib/diff_reader.rb
+++ b/lib/diff_reader.rb
@@ -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,