X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/db66d47e42bc267670ef00b3b2611b4b53cb40e9..7d8bd4f4bd26dbf21a5a907ac4d581ee6cdd1377:/app/models/way.rb diff --git a/app/models/way.rb b/app/models/way.rb index 45789dabe..958944200 100644 --- a/app/models/way.rb +++ b/app/models/way.rb @@ -235,8 +235,6 @@ class Way < ActiveRecord::Base # delete a way and it's nodes that aren't part of other ways, with history def delete_with_relations_and_nodes_and_history(user) - node_ids_to_delete = node_ids - node_ids_not_to_delete - # delete the nodes not used by other ways self.unshared_node_ids.each do |node_id| n = Node.find(node_id)