]> git.openstreetmap.org Git - rails.git/commitdiff
Remove node.tags_as_hash method
authorAnton Khorev <tony29@yandex.ru>
Tue, 3 Sep 2024 01:27:07 +0000 (04:27 +0300)
committerAnton Khorev <tony29@yandex.ru>
Tue, 3 Sep 2024 01:27:07 +0000 (04:27 +0300)
app/models/node.rb
app/models/old_node.rb

index 825336d16e684ac25fb15c5f4f3294cd652d281d..1bec9a33cfa05968c040904182ab12b14e8e588f 100644 (file)
@@ -199,10 +199,6 @@ class Node < ApplicationRecord
     save_with_history!
   end
 
-  def tags_as_hash
-    tags
-  end
-
   def tags
     @tags ||= node_tags.to_h { |t| [t.k, t.v] }
   end
index b323f0b4f0eb65bef77b0750008d6a3d95d326cf..4585ed406b28cba2205aa82b37fa11e67a539068 100644 (file)
@@ -85,10 +85,6 @@ class OldNode < ApplicationRecord
 
   attr_writer :tags
 
-  def tags_as_hash
-    tags
-  end
-
   # Pretend we're not in any ways
   def ways
     []