]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/way.rb
Potlatch 0.11a
[rails.git] / app / models / way.rb
index 325ffae4875fd8a53bb14244795d7b6f326f02ff..da305f082173891f3d75039a3dc64fbc0136599e 100644 (file)
@@ -266,18 +266,6 @@ class Way < ActiveRecord::Base
     end
   end
 
-  # Find nodes that belong to this way only
-  def unshared_node_ids
-    node_ids = self.nodes.collect { |node| node.id }
-
-    unless node_ids.empty?
-      way_nodes = WayNode.find(:all, :conditions => "node_id in (#{node_ids.join(',')}) and id != #{self.id}")
-      node_ids = node_ids - way_nodes.collect { |way_node| way_node.node_id }
-    end
-
-    return node_ids
-  end
-
   # Temporary method to match interface to nodes
   def tags_as_hash
     return self.tags