From 16cc2e75a7c362f28cbcf617fd10baabe9f14d96 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Thu, 28 Mar 2024 11:49:49 +0300 Subject: [PATCH] Remove unused includes of ConsistencyValidations --- app/controllers/changesets_controller.rb | 3 --- app/models/old_node.rb | 1 - app/models/old_relation.rb | 2 -- app/models/old_way.rb | 2 -- lib/diff_reader.rb | 2 -- 5 files changed, 10 deletions(-) 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, -- 2.39.5