remove a huge load of pseudo-traces
authorRichard Fairhurst <richard@systemed.net>
Wed, 16 Feb 2011 13:50:25 +0000 (13:50 +0000)
committerRichard Fairhurst <richard@systemed.net>
Wed, 16 Feb 2011 13:50:25 +0000 (13:50 +0000)
32 files changed:
net/systemeD/halcyon/EntityUI.as
net/systemeD/halcyon/Map.as
net/systemeD/halcyon/MapPaint.as
net/systemeD/halcyon/MarkerUI.as
net/systemeD/halcyon/NodeUI.as
net/systemeD/halcyon/VectorLayer.as
net/systemeD/halcyon/connection/Connection.as
net/systemeD/halcyon/connection/OSMConnection.as
net/systemeD/halcyon/connection/XMLBaseConnection.as
net/systemeD/halcyon/connection/actions/AddNodeToWayAction.as
net/systemeD/halcyon/connection/actions/UnjoinNodeAction.as
net/systemeD/halcyon/styleparser/RuleSet.as
net/systemeD/halcyon/styleparser/StyleChooser.as
net/systemeD/potlatch2/BackgroundSelector.mxml
net/systemeD/potlatch2/collections/Imagery.as
net/systemeD/potlatch2/controller/ControllerState.as
net/systemeD/potlatch2/controller/DragBackground.as
net/systemeD/potlatch2/controller/DragSelection.as
net/systemeD/potlatch2/controller/DragWayNode.as
net/systemeD/potlatch2/controller/DrawWay.as
net/systemeD/potlatch2/controller/NoSelection.as
net/systemeD/potlatch2/controller/SelectedMarker.as
net/systemeD/potlatch2/controller/SelectedMultiple.as
net/systemeD/potlatch2/controller/SelectedPOINode.as
net/systemeD/potlatch2/controller/SelectedParallelWay.as
net/systemeD/potlatch2/controller/SelectedWay.as
net/systemeD/potlatch2/controller/SelectedWayNode.as
net/systemeD/potlatch2/utils/GpxImporter.as
net/systemeD/potlatch2/utils/Importer.as
net/systemeD/potlatch2/utils/KmlImporter.as
net/systemeD/potlatch2/utils/OsmImporter.as
net/systemeD/potlatch2/utils/ShpImporter.as

index 5d3f2387ed8a49777aca2124b71047e090f2cbac..ae7efac1f54b025ef5a51c3fe3a933cfc2183af3 100644 (file)
@@ -4,7 +4,6 @@ package net.systemeD.halcyon {
        import flash.events.MouseEvent;
        import flash.text.AntiAliasType;
        import flash.text.GridFitType;
-       import net.systemeD.halcyon.Globals;
        import net.systemeD.halcyon.styleparser.StyleList;
     import net.systemeD.halcyon.connection.*;
 
index 79f9888a9609d3a08bcf03d95a30642e89e5ce0b..ab8a2b46afbfd1eaad57c019d726bd44702e42d6 100644 (file)
@@ -166,7 +166,6 @@ package net.systemeD.halcyon {
                        scalefactor=MASTERSCALE/Math.pow(2,13-scale);
                        baselon    =startlon          -(mapwidth /2)/scalefactor;
                        basey      =lat2latp(startlat)+(mapheight/2)/scalefactor;
-                       addDebug("Baselon "+baselon+", basey "+basey);
                        updateCoords(0,0);
             this.dispatchEvent(new Event(MapEvent.INITIALISED));
                        download();
@@ -294,7 +293,6 @@ package net.systemeD.halcyon {
                        if (connection.waycount>1000) {
                                connection.purgeOutside(edge_l,edge_r,edge_t,edge_b);
                        }
-                       addDebug("Calling download with "+edge_l+"-"+edge_r+", "+edge_t+"-"+edge_b);
                        connection.loadBbox(edge_l,edge_r,edge_t,edge_b);
 
             // Do the same for vector layers
@@ -425,7 +423,6 @@ package net.systemeD.halcyon {
                }
 
                private function changeScale(newscale:uint):void {
-                       addDebug("new scale "+newscale);
                        scale=newscale;
                        this.dispatchEvent(new MapEvent(MapEvent.SCALE, {scale:scale}));
                        scalefactor=MASTERSCALE/Math.pow(2,13-scale);
@@ -435,10 +432,6 @@ package net.systemeD.halcyon {
                        download();
                }
 
-               private function reportPosition():void {
-                       addDebug("lon "+coord2lon(mouseX)+", lat "+coord2lat(mouseY));
-               }
-
         private function toggleReportPosition():void {
             showingLatLon = !showingLatLon;
             this.dispatchEvent(new MapEvent(MapEvent.TOGGLE_LATLON, {latlon: showingLatLon}));
@@ -488,7 +481,7 @@ package net.systemeD.halcyon {
                // and mask)
 /*             
                public function export():void {
-                       addDebug("size is "+this.width+","+this.height);
+                       trace("size is "+this.width+","+this.height);
                        var jpgSource:BitmapData = new BitmapData(800,800); // (this.width, this.height);
                        jpgSource.draw(this);
                        var jpgEncoder:JPGEncoder = new JPGEncoder(85);
@@ -572,11 +565,6 @@ package net.systemeD.halcyon {
                        }
                }
 
-               /** What to do if an error with the network connection happens. */
-               public function connectionError(err:Object=null): void {
-                       addDebug("got error"); 
-               }
-
                // ------------------------------------------------------------------------------------------
                // Debugging
                
index bf91c3d7b61b980e534650fe4c6f34b400e12687..7cee4d3518edd8a1c155280f60bdccb904d295b0 100644 (file)
@@ -6,7 +6,6 @@ package net.systemeD.halcyon {
        import net.systemeD.halcyon.WayUI;
        import net.systemeD.halcyon.connection.*;
        import net.systemeD.halcyon.styleparser.RuleSet;
-       import net.systemeD.halcyon.Globals;
 
        /** Manages the drawing of map entities, allocating their sprites etc. */
        public class MapPaint extends Sprite {
index 834c42d812b8294be2cc8844b954e8efe2fb93c2..e2b9f20a9227e601e068e57e2e3bb27a5e2c11b1 100644 (file)
@@ -10,7 +10,6 @@ package net.systemeD.halcyon {
     import flash.geom.Point;
     import net.systemeD.halcyon.styleparser.*;
     import net.systemeD.halcyon.connection.*;
-    import net.systemeD.halcyon.Globals;
 
     public class MarkerUI extends EntityUI {
 
index e4e6ca39f282a45f04fd20913c6270467b862cf9..4d842438b4f890ad39b63f7bbce709ff3302b9d6 100644 (file)
@@ -10,7 +10,6 @@ package net.systemeD.halcyon {
        import flash.geom.Point;
        import net.systemeD.halcyon.styleparser.*;
     import net.systemeD.halcyon.connection.*;
-       import net.systemeD.halcyon.Globals;
        
        /** The graphical representation of a Node (including POIs and nodes that are part of Ways). */
        public class NodeUI extends EntityUI {
index c301cac6f01f4a5eb79d2e8657f1f0a0faf8016a..9903988751357982e1d65fa23c71c93cdc4f7673 100644 (file)
@@ -4,7 +4,6 @@ package net.systemeD.halcyon {
        import net.systemeD.halcyon.MapPaint;
        import net.systemeD.halcyon.connection.*;
     import net.systemeD.halcyon.connection.actions.*;
-       import net.systemeD.halcyon.Globals;
        import net.systemeD.halcyon.styleparser.RuleSet;
 
     /** The VectorLayer class is used for the concept of Vector Background Layers.
index 993061466f4c9d5778024b94894d2b92b6db2136..847b6dd18b14dd4dfb9ca4c0b19341068a8d6dde 100644 (file)
@@ -4,7 +4,6 @@ package net.systemeD.halcyon.connection {
 
     import flash.events.EventDispatcher;
     import flash.events.Event;
-       import net.systemeD.halcyon.Globals;
        import net.systemeD.halcyon.connection.actions.*;
        import net.systemeD.halcyon.AttentionEvent;
        import net.systemeD.halcyon.MapEvent;
index c38bdc1bddcbdfadb9d8b54d3af586751c56e8b0..18f12944b373366b95d82c6a87bc50fa8123a370 100644 (file)
@@ -6,7 +6,6 @@ package net.systemeD.halcyon.connection {
        import flash.system.Security;
 
        import net.systemeD.halcyon.ExtendedURLLoader;
-       import net.systemeD.halcyon.Globals;
 
     /**
     * Read-only connection from local OSM-XML format (.osm) files.
@@ -96,7 +95,6 @@ package net.systemeD.halcyon.connection {
                }
                
                private function loadFile(box:Array):void {
-                       Globals.vars.root.addDebug("called loadFile for "+box);
                        bboxes[box]=LOADING;
 
             var mapRequest:URLRequest = new URLRequest(Connection.apiBaseURL+"/"+box[0]+"_"+box[1]+"_"+box[2]+"_"+box[3]+".osm");
index 16749f2e1f31ea7645a6ad82b5a31389ebe92b31..b99e70fb98e1a52bbe17663c9ba44a9124e94e9a 100644 (file)
@@ -6,8 +6,6 @@ package net.systemeD.halcyon.connection {
        import flash.net.*;
     import org.iotashan.oauth.*;
 
-       import net.systemeD.halcyon.Globals;
-
     /**
     * XMLBaseConnection is the common code between connecting to an OSM server
     * (i.e. XMLConnection) and connecting to a standalone .osm file (i.e. OSMConnection)
index bb696be6154cc0371b21e20c5e0197b08d2e0af9..7e291e9385516357c20ea82d3bb497fe0ea36448 100644 (file)
@@ -1,7 +1,6 @@
 package net.systemeD.halcyon.connection.actions {
 
     import net.systemeD.halcyon.connection.*;
-       import net.systemeD.halcyon.Globals;
     
     public class AddNodeToWayAction extends UndoableEntityAction {
         private var node:Node;
index 279e1b875d99ed1b2e66a962e0ae158892ca9c76..a9e14e84c44dfa54b78982c8b29f4bd2190a5d0b 100644 (file)
@@ -1,7 +1,6 @@
 package net.systemeD.halcyon.connection.actions {
 
     import net.systemeD.halcyon.connection.*;
-       import net.systemeD.halcyon.Globals;
     
     public class UnjoinNodeAction extends CompositeUndoableAction {
 
index 650506226ee3f94f4b3e79da0fee83f202b76d4f..fed1ea726e666a0a162f17761d2e0ade00043357 100644 (file)
@@ -8,7 +8,6 @@ package net.systemeD.halcyon.styleparser {
     import net.systemeD.halcyon.connection.Entity;
 
     import net.systemeD.halcyon.connection.*;
-       import net.systemeD.halcyon.Globals;
        
        /** A complete stylesheet, as loaded from a MapCSS file. It contains all selectors, declarations, 
                and embedded images.                                                                                                                                                            </p><p>
@@ -337,8 +336,8 @@ package net.systemeD.halcyon.styleparser {
         }
 
                private function httpStatusHandler( event:HTTPStatusEvent ):void { }
-               private function securityErrorHandler( event:SecurityErrorEvent ):void { Globals.vars.root.addDebug("securityerrorevent"); }
-               private function ioErrorHandler( event:IOErrorEvent ):void { Globals.vars.root.addDebug("ioerrorevent"); }
+               private function securityErrorHandler( event:SecurityErrorEvent ):void { trace("securityerrorevent"); }
+               private function ioErrorHandler( event:IOErrorEvent ):void { trace("ioerrorevent"); }
 
                // ------------------------------------------------------------------------------------------------
                // Parse CSS
@@ -418,11 +417,11 @@ package net.systemeD.halcyon.styleparser {
                                // Unknown pattern
                                } else if ((o=UNKNOWN.exec(css))) {
                                        css=css.replace(UNKNOWN,'');
-                                       Globals.vars.root.addDebug("unknown: "+o[1]);
+                                       trace("unknown: "+o[1]);
                                        // ** do some debugging with o[1]
 
                                } else {
-                                       Globals.vars.root.addDebug("choked on "+css);
+                                       trace("choked on "+css);
                                        return;
                                }
                        }
index 988d8db20765748d8b3bcdcf38149b0854a31fb6..05b71b8823d4bda32fd611831c18b873680fa8e7 100644 (file)
@@ -1,7 +1,6 @@
 package net.systemeD.halcyon.styleparser {
 
        import net.systemeD.halcyon.connection.Entity;
-       import net.systemeD.halcyon.Globals;
 
        public class StyleChooser {
 
index 6abcc57da32a8886f0df6cb2d0d958f113868474..551e87fc9cdaecee265ce8f585fd1d32d51fbbda 100644 (file)
@@ -29,7 +29,6 @@
                import mx.core.*;
                import mx.collections.ArrayCollection;
                import mx.managers.PopUpManager;
-               import net.systemeD.halcyon.Globals;
 
                public function setDimming(v:Boolean):void {
                        Application.application.theMap.setDimming(dim.selected);
index 1258f97b59712db063536d1720ad9c6e2debefa6..e837e105c901f09a96112383583dcd2b167dd015 100644 (file)
@@ -109,7 +109,6 @@ package net.systemeD.potlatch2.collections {
                                }
                                if (bg.attribution_url) {
                                        // load the attribution
-                                       trace("requesting "+bg.attribution_url);
                                var urlloader:URLLoader = new URLLoader();
                                        var thisbg2:Object = bg;                        // scope it for the closure
                                        urlloader.addEventListener(Event.COMPLETE, function(e:Event):void { onAttributionLoad(e,thisbg2); });
@@ -137,7 +136,6 @@ package net.systemeD.potlatch2.collections {
                }
                
                public function onAttributionLoad(e:Event,bg: Object):void {
-                       trace ("onAttributionLoad");
                        // if we ever need to cope with non-Microsoft attribution, then this should look at bg.scheme
             default xml namespace = Namespace("http://schemas.microsoft.com/search/local/ws/rest/v1");
             var xml:XML = new XML(e.target.data);
index 3f9cb3150c9d76be5004f6239f64094d93a6610e..56c0722ff8a37b770bd77e722097dfa61b7152e1 100644 (file)
@@ -6,7 +6,6 @@ package net.systemeD.potlatch2.controller {
     import net.systemeD.halcyon.connection.*;
     import net.systemeD.potlatch2.collections.Imagery;
     import net.systemeD.potlatch2.EditController;
-       import net.systemeD.halcyon.Globals;
        import net.systemeD.potlatch2.save.SaveManager;
        import flash.ui.Keyboard;
        import mx.controls.Alert;
index ba1624df8c3b456e36fa04cde53e79218bd50b3b..7f46b98e860dc40c0ad9d0c8dafe1a2a2d71f0de 100644 (file)
@@ -3,7 +3,6 @@ package net.systemeD.potlatch2.controller {
     import net.systemeD.potlatch2.EditController;
     import net.systemeD.halcyon.connection.*;
     import net.systemeD.halcyon.MapEvent;
-       import net.systemeD.halcyon.Globals;
 
     /** The state of realigning the background imagery by holding down a key and moving the mouse. This moves the background, but 
     * doesn't move the map, thereby adjusting the offset between the background and the map. */
@@ -40,13 +39,11 @@ package net.systemeD.potlatch2.controller {
         /** Prevent map panning while background is being dragged. */
         override public function enterState():void {
                        controller.map.draggable=false;
-                       Globals.vars.root.addDebug("**** -> "+this);
         }
         
         /** Re-allow map panning. */
         override public function exitState(newState:ControllerState):void {
                        controller.map.draggable=true;
-                       Globals.vars.root.addDebug("**** <- "+this);
         }
         
         /** "DragBackground" */
index 3322b11d2882d4f817da9b82080155dc8acc7e68..e17299a9843b41a40f98fddbf1613aa5fbeec70a 100644 (file)
@@ -5,7 +5,6 @@ package net.systemeD.potlatch2.controller {
     import net.systemeD.potlatch2.EditController;
     import net.systemeD.halcyon.connection.*;
     import net.systemeD.halcyon.connection.actions.*;
-       import net.systemeD.halcyon.Globals;
 
     /** The state of moving a selection around with the mouse. */
     public class DragSelection extends ControllerState {
@@ -98,7 +97,6 @@ package net.systemeD.potlatch2.controller {
                        for each (var entity:Entity in selection) {
                                controller.map.setHighlight(entity, { selected: true });
                        }
-                       Globals.vars.root.addDebug("**** -> "+this);
         }
         
         /** Un-highlight the dragged selection. */
@@ -106,7 +104,6 @@ package net.systemeD.potlatch2.controller {
                        for each (var entity:Entity in selection) {
                                controller.map.setHighlight(entity, { selected: false });
                        }
-                       Globals.vars.root.addDebug("**** <- "+this);
         }
         /** "DragSelection" */
         override public function toString():String {
index 3d108712d809c5bd0acef235f85ec3556131ea99..83421541c15fd4af0a5ebbf350d456c03c913edc 100644 (file)
@@ -2,7 +2,6 @@ package net.systemeD.potlatch2.controller {
        import flash.events.*;
     import net.systemeD.potlatch2.EditController;
     import net.systemeD.halcyon.connection.*;
-       import net.systemeD.halcyon.Globals;
        import net.systemeD.halcyon.WayUI;
 
     public class DragWayNode extends ControllerState {
@@ -121,14 +120,12 @@ package net.systemeD.potlatch2.controller {
                        controller.map.setHighlight(draggingNode, { selected: true } );
                        controller.map.protectWay(parentWay);
                        controller.map.limitWayDrawing(parentWay, NaN, draggingIndex);
-                       Globals.vars.root.addDebug("**** -> "+this);
         }
         override public function exitState(newState:ControllerState):void {
                        controller.map.unprotectWay(parentWay);
                        controller.map.limitWayDrawing(parentWay);
                        controller.map.setHighlightOnNodes(parentWay, { selectedway: false } );
                        controller.map.setHighlight(draggingNode, { selected: false } );
-                       Globals.vars.root.addDebug("**** <- "+this);
         }
         override public function toString():String {
             return "DragWayNode";
index 528c6a9ec77e5801b841d57f7a3ff99905368d45..80a637d90b2a3e2e7d06bd88db568304e8105c62 100644 (file)
@@ -7,7 +7,6 @@ package net.systemeD.potlatch2.controller {
        import net.systemeD.halcyon.connection.*;
     import net.systemeD.halcyon.connection.actions.*;
        import net.systemeD.halcyon.Elastic;
-       import net.systemeD.halcyon.Globals;
        import net.systemeD.halcyon.MapPaint;
 
        public class DrawWay extends SelectedWay {
@@ -323,7 +322,6 @@ package net.systemeD.potlatch2.controller {
                        var start:Point = new Point(node.lon, node.latp);
                        elastic = new Elastic(controller.map, start, start);
                        controller.setCursor(controller.pen);
-                       Globals.vars.root.addDebug("**** -> "+this);
                }
                override public function exitState(newState:ControllerState):void {
             Way(firstSelected).removeEventListener(Connection.WAY_NODE_REMOVED, fixElastic);
@@ -333,7 +331,6 @@ package net.systemeD.potlatch2.controller {
                        controller.setCursor(null);
                        elastic.removeSprites();
                        elastic = null;
-                       Globals.vars.root.addDebug("**** <- "+this);
                }
                override public function toString():String {
                        return "DrawWay";
index 8737de17632aeac8773179f598791a560798d9c4..c65c6f2b1ade893351e0b2569bccc5c46434649b 100644 (file)
@@ -6,7 +6,6 @@ package net.systemeD.potlatch2.controller {
     import net.systemeD.halcyon.connection.actions.*;
        import net.systemeD.halcyon.Map;
        import net.systemeD.halcyon.MapPaint;
-       import net.systemeD.halcyon.Globals;
 
        public class NoSelection extends ControllerState {
 
@@ -45,10 +44,8 @@ package net.systemeD.potlatch2.controller {
                
         override public function enterState():void {
                        controller.map.mouseUpHandler();
-                       Globals.vars.root.addDebug("**** -> "+this);
         }
         override public function exitState(newState:ControllerState):void {
-                       Globals.vars.root.addDebug("**** <- "+this);
         }
                override public function toString():String {
                        return "NoSelection";
index c63164db19fa6cc1375f65c0238948c20c766a22..a6164ee8a4153a3461b39a7a88b25fb48600366c 100644 (file)
@@ -4,7 +4,6 @@ package net.systemeD.potlatch2.controller {
     import net.systemeD.potlatch2.EditController;
     import net.systemeD.halcyon.connection.*;
     import net.systemeD.halcyon.VectorLayer;
-       import net.systemeD.halcyon.Globals;
 
     public class SelectedMarker extends ControllerState {
         protected var initMarker:Marker;
@@ -55,13 +54,11 @@ package net.systemeD.potlatch2.controller {
         override public function enterState():void {
             selectMarker(initMarker);
                        controller.map.setPurgable(selection,false);
-                       Globals.vars.root.addDebug("**** -> "+this);
         }
 
         override public function exitState(newState:ControllerState):void {
                        controller.map.setPurgable(selection,true);
             clearSelection(newState);
-                       Globals.vars.root.addDebug("**** <- "+this);
         }
 
         override public function toString():String {
index 1eb56b065a1f6c65c587ed029d18cc02e9b319ef..b7c4f0bb1d3b4b382298e65b0b47a330e8ce2837 100644 (file)
@@ -2,7 +2,6 @@ package net.systemeD.potlatch2.controller {
        import flash.events.*;
        
        import net.systemeD.halcyon.AttentionEvent;
-       import net.systemeD.halcyon.Globals;
        import net.systemeD.halcyon.connection.*;
        import net.systemeD.halcyon.connection.actions.MergeWaysAction;
     
@@ -115,7 +114,6 @@ package net.systemeD.potlatch2.controller {
                        }
                        controller.updateSelectionUI();
                        controller.map.setPurgable(selection,false);
-                       Globals.vars.root.addDebug("**** -> "+this+" "+selection);
                }
 
                override public function exitState(newState:ControllerState):void {
@@ -125,7 +123,6 @@ package net.systemeD.potlatch2.controller {
                        }
                        selection = [];
                        if (!newState.isSelectionState()) { controller.updateSelectionUI(); }
-                       Globals.vars.root.addDebug("**** <- "+this);
                }
 
                override public function toString():String {
index f68f42279ef51fb8d180bc4e699b2eae7dcf3eeb..415004d51380f649ef018d09079cca4e6db81796 100644 (file)
@@ -3,7 +3,6 @@ package net.systemeD.potlatch2.controller {
        import flash.ui.Keyboard;
     import net.systemeD.potlatch2.EditController;
     import net.systemeD.halcyon.connection.*;
-       import net.systemeD.halcyon.Globals;
 
     public class SelectedPOINode extends ControllerState {
         protected var initNode:Node;
@@ -59,7 +58,6 @@ package net.systemeD.potlatch2.controller {
         override public function enterState():void {
             selectNode(initNode);
                        controller.map.setPurgable(selection,false);
-                       Globals.vars.root.addDebug("**** -> "+this);
         }
         override public function exitState(newState:ControllerState):void {
             if(firstSelected.hasTags()) {
@@ -67,7 +65,6 @@ package net.systemeD.potlatch2.controller {
             }
                        controller.map.setPurgable(selection,true);
             clearSelection(newState);
-                       Globals.vars.root.addDebug("**** <- "+this);
         }
 
         override public function toString():String {
index cd3044647cab0f0020a852e6580bae8b9eea02ab..94ff889810a88887875fa23a314875dc4e580c2a 100644 (file)
@@ -4,7 +4,6 @@ package net.systemeD.potlatch2.controller {
     import net.systemeD.halcyon.connection.*;
     import net.systemeD.halcyon.Map;
        import net.systemeD.potlatch2.tools.Parallelise;
-       import net.systemeD.halcyon.Globals;
 
     /** The state midway during the use of the "parallelise tool", where a parallel way has been created but is stuck to the 
     * mouse cursor, allowing the user to choose how far from the original way it should go. This transforms it in the process. */
@@ -80,12 +79,10 @@ package net.systemeD.potlatch2.controller {
                        controller.map.paint.createWayUI(firstSelected as Way);
                        startlon =controller.map.coord2lon(controller.map.mouseX);
                        startlatp=controller.map.coord2latp(controller.map.mouseY);
-                       Globals.vars.root.addDebug("**** -> "+this);
         }
                /** Unselects. */
                override public function exitState(newState:ControllerState):void {
             clearSelection(newState);
-                       Globals.vars.root.addDebug("**** <- "+this);
         }
 
         override public function toString():String {
index bab211e64b44a82d96da309596dd51f8e7483c4d..b3aadd8806eb21b14bce089a32397011023d12f8 100644 (file)
@@ -3,7 +3,6 @@ package net.systemeD.potlatch2.controller {
        import flash.geom.Point;
        import flash.ui.Keyboard;
        
-       import net.systemeD.halcyon.Globals;
        import net.systemeD.halcyon.WayUI;
        import net.systemeD.halcyon.connection.*;
        import net.systemeD.potlatch2.tools.Quadrilateralise;
@@ -117,7 +116,6 @@ package net.systemeD.potlatch2.controller {
                    initWay.addEventListener(Connection.WAY_REORDERED, updateSelectionUI, false, 0, true);
                        }
                        controller.map.setPurgable(selection,false);
-                       Globals.vars.root.addDebug("**** -> "+this+" "+firstSelected.id);
         }
         /** Officially leave the state, remembering the current way's tags for future repeats. */
         // TODO: tweak this so that repeat tags aren't remembered if you only select a way in order to branch off it. (a la PL1) 
@@ -128,7 +126,6 @@ package net.systemeD.potlatch2.controller {
                        controller.map.setPurgable(selection,true);
             firstSelected.removeEventListener(Connection.WAY_REORDERED, updateSelectionUI);
             clearSelection(newState);
-                       Globals.vars.root.addDebug("**** <- "+this);
         }
 
         /** @return "SelectedWay" */
index 04a91ce4cca026052c38b6a254f187a6db9dc09c..24e7d22bc35995e9a1a2356dab93df5b081c0284 100644 (file)
@@ -4,7 +4,6 @@ package net.systemeD.potlatch2.controller {
        import flash.ui.Keyboard;
        
        import net.systemeD.halcyon.AttentionEvent;
-       import net.systemeD.halcyon.Globals;
        import net.systemeD.halcyon.WayUI;
        import net.systemeD.halcyon.connection.*;
        import net.systemeD.halcyon.connection.actions.*;
@@ -108,7 +107,6 @@ package net.systemeD.potlatch2.controller {
                override public function enterState():void {
             selectNode(parentWay,initIndex);
                        controller.map.setPurgable(selection,false);
-                       Globals.vars.root.addDebug("**** -> "+this);
         }
                override public function exitState(newState:ControllerState):void {
             if (firstSelected.hasTags()) {
@@ -116,7 +114,6 @@ package net.systemeD.potlatch2.controller {
             }
                        controller.map.setPurgable(selection,true);
             clearSelection(newState);
-                       Globals.vars.root.addDebug("**** <- "+this);
         }
 
         override public function toString():String {
index 43070d44d03c8289f22977e33d57bad2d0cf2ee7..6c6eac4b592f5d6e353f874cb0707c9254eed434 100644 (file)
@@ -1,7 +1,6 @@
 package net.systemeD.potlatch2.utils {
 
        import net.systemeD.halcyon.MapPaint;
-       import net.systemeD.halcyon.Globals;
        import net.systemeD.halcyon.connection.Node;
        import net.systemeD.halcyon.connection.Way;
        import net.systemeD.potlatch2.tools.Simplify;
index 195239f38610a2f808bcb65b91defda040a3e59a..e4b61955e42bcba91bf62ca41156ae0fcaabcf5e 100644 (file)
@@ -9,8 +9,6 @@ package net.systemeD.potlatch2.utils {
        import flash.events.*;
        import flash.net.*;
 
-       import net.systemeD.halcyon.Globals;
-
        public class Importer {
 
                protected var container:Object;                         // destination object for way/node/relations data
@@ -23,9 +21,6 @@ package net.systemeD.potlatch2.utils {
                protected var simplify:Boolean;
 
                public function Importer(container:*, paint:MapPaint, filenames:Array, callback:Function, simplify:Boolean) {
-                       Globals.vars.root.addDebug("starting importer"); 
-                       Globals.vars.root.addDebug("container is "+container);
-                       Globals.vars.root.addDebug("paint is "+paint);
                        this.container = container;
                        this.paint = paint;
                        this.filenames=filenames;
@@ -35,7 +30,7 @@ package net.systemeD.potlatch2.utils {
                        var sp:uint=0;
                        for each (var fn:String in filenames) {
                                var thissp:uint=sp;             // scope within this block for the URLLoader 'complete' closure
-                               Globals.vars.root.addDebug("requesting file "+fn);
+                               trace("requesting file "+fn);
                                var request:DebugURLRequest = new DebugURLRequest(fn);
                                var loader:URLLoader = new URLLoader();
                                loader.dataFormat=URLLoaderDataFormat.BINARY;
@@ -50,7 +45,7 @@ package net.systemeD.potlatch2.utils {
                }
                
                protected function fileLoaded(e:Event,filenum:uint):void {
-                       Globals.vars.root.addDebug("loaded file "+filenum); 
+                       trace("loaded file "+filenum); 
                        files[filenum]=e.target.data;
                        filesloaded++;
                        if (filesloaded==filenames.length) { 
index b8ee48df8e571ee4b5434838caec0e23a0dc984b..947240a87d53c8af2b0dbf6b40110fac271144ce 100644 (file)
@@ -1,7 +1,6 @@
 package net.systemeD.potlatch2.utils {
 
     import net.systemeD.halcyon.MapPaint;
-    import net.systemeD.halcyon.Globals;
     import net.systemeD.halcyon.connection.Node;
     import net.systemeD.halcyon.connection.Way;
     import net.systemeD.halcyon.connection.Relation;
index 4bb305ff5ce1596f70f49091ee7e8ffcbf932901..f456899fc9a5a2b91cfa2fa20e7e9b9d90e4997b 100644 (file)
@@ -1,7 +1,6 @@
 package net.systemeD.potlatch2.utils {
 
        import net.systemeD.halcyon.MapPaint;
-       import net.systemeD.halcyon.Globals;
        import net.systemeD.halcyon.connection.*;
        import net.systemeD.potlatch2.tools.Simplify;
 
index bc3e742290de58adb709ffbde85f92ce7389f377..6c46fab693d21ecc1bbbd5d5aa95fae4eda46a35 100644 (file)
@@ -3,7 +3,6 @@ package net.systemeD.potlatch2.utils {
        import org.vanrijkom.shp.*;
        import org.vanrijkom.dbf.*;
        import net.systemeD.halcyon.MapPaint;
-       import net.systemeD.halcyon.Globals;
        import net.systemeD.halcyon.connection.Node;
        import net.systemeD.halcyon.connection.Way;
        import net.systemeD.potlatch2.tools.Simplify;