fix creating ways duplicate node bug, and connecting to existing way-node bug
[potlatch2.git] / net / systemeD / potlatch2 / EditController.as
index 6e83229bd5f29f8dbe8a1a5c1ccc171e5c383abb..a42e39f7056c3df23340eb933a7def0362a70c18 100644 (file)
@@ -10,10 +10,6 @@ package net.systemeD.potlatch2 {
 
         private var _map:Map;
         private var tagViewer:TagViewer;
-        private var selectedWay:Way;
-        private var selectedNode:Node;
-        
-        private var draggingNode:Node = null;
         
         private var state:ControllerState;
         private var _connection:Connection;
@@ -89,19 +85,6 @@ package net.systemeD.potlatch2 {
             state = newState;
             state.enterState();
         }
-
-        private function processNodeEvent(event:MouseEvent, entity:Entity):void {
-            if ( draggingNode != null ) {
-                if ( event.type == MouseEvent.MOUSE_UP ) {
-                    draggingNode = null;
-                } else if ( event.type == MouseEvent.MOUSE_MOVE ) {
-                    draggingNode.lat = map.coord2lat(event.localY);
-                    draggingNode.lon = map.coord2lon(event.localX);
-                }
-            } else if ( event.type == MouseEvent.MOUSE_DOWN ) {
-                draggingNode = entity as Node;
-            }
-        }
         
     }