X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/db66d47e42bc267670ef00b3b2611b4b53cb40e9..f77ce935a44dfdef0dad5e10ff34eaeea5f11abc:/app/models/way.rb?ds=sidebyside 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)