]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/way.rb
Don't user flash[:notice] when we're not redirecting as it will
[rails.git] / app / models / way.rb
index 45789dabe4bf5c03aff02482f6855678620f2427..958944200df628054c67c6c0eb8e60105d99bb38 100644 (file)
@@ -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)