[gnome-maps/wip/osrm-routing: 13/21] Sidebar: remove unused mapView reference



commit 2a516acafd3870fa1e7ba2cf54af3788bac3a070
Author: Mattias Bengtsson <mattias jc bengtsson gmail com>
Date:   Thu Jun 13 04:23:24 2013 +0200

    Sidebar: remove unused mapView reference
    
    Remove unused mapView reference

 src/mapView.js |    2 +-
 src/sidebar.js |    3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/mapView.js b/src/mapView.js
index eb28b25..9a180e3 100644
--- a/src/mapView.js
+++ b/src/mapView.js
@@ -65,7 +65,7 @@ const MapView = new Lang.Class({
         this.view.connect('notify::latitude', Lang.bind(this, this._onViewMoved));
         this.view.connect('notify::longitude', Lang.bind(this, this._onViewMoved));
 
-        this._sidebar = new Sidebar.Sidebar(this);
+        this._sidebar = new Sidebar.Sidebar();
         // Don't show sidebar until it has something in it
         //this.view.add_child(this._sidebar.actor);
 
diff --git a/src/sidebar.js b/src/sidebar.js
index 697af5a..491a931 100644
--- a/src/sidebar.js
+++ b/src/sidebar.js
@@ -38,8 +38,7 @@ const _ = imports.gettext.gettext;
 const Sidebar = new Lang.Class({
     Name: 'Sidebar',
 
-    _init: function(mapView) {
-        this._mapView = mapView;
+    _init: function() {
         this.actor = new Clutter.Actor({ layout_manager: new Clutter.BoxLayout({ spacing: 12 }),
                                          y_expand: true,
                                          x_align: Clutter.ActorAlign.END });


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]