Remove the unused layer variable from the background panel.
authorAndy Allan <andy@gravitystorm.co.uk>
Wed, 22 Feb 2012 11:21:51 +0000 (11:21 +0000)
committerAndy Allan <andy@gravitystorm.co.uk>
Wed, 22 Feb 2012 11:21:51 +0000 (11:21 +0000)
net/systemeD/potlatch2/TagViewer.mxml
net/systemeD/potlatch2/panels/BackgroundPanel.mxml

index dbdc7f3..8c2e975 100644 (file)
               markerPanelContents.init(selectedEntity, layer);
               sidebar.selectedChild = markerPanel;
             } else if (connection is SnapshotConnection) {
-              backgroundPanelContents.init(selectedEntity, layer);
+              backgroundPanelContents.init(selectedEntity);
               sidebar.selectedChild = backgroundPanel;
             } else {
               refreshFeatureIcon();
index 2865581..9f68da6 100644 (file)
   <fx:Script><![CDATA[
 
       import net.systemeD.halcyon.connection.*;
-      import net.systemeD.halcyon.MapPaint;
       import net.systemeD.potlatch2.utils.SnapshotConnection;
       import mx.collections.*;
 
       private var selectedEntity:Entity;
       private var tagDataProvider:ArrayCollection;
-      private var layer:MapPaint;
       [Bindable]
       private var connectionName:String;
 
-      public function init(entity:Entity, layer:MapPaint):void {
-          this.layer = layer;
+      public function init(entity:Entity):void {
           if ( tagDataProvider == null ) {
               tagDataProvider = new ArrayCollection();
               backgroundPanelDG.dataProvider = tagDataProvider;