[gnome-shell] network: Remove some dead code



commit a67b82e730f60a5e1f39ff0585bb282d0530911b
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Apr 25 21:16:33 2013 -0400

    network: Remove some dead code
    
    We cannot possibly reach createActiveConnectionItem unless we have
    an active network, so the plain unreative menu item cannot ever
    be created.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=698918

 js/ui/status/network.js |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/js/ui/status/network.js b/js/ui/status/network.js
index 9eb811f..3f086b3 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -1341,13 +1341,8 @@ const NMDeviceWireless = new Lang.Class({
         else
             title = _("Connected (private)");
 
-        if (this._activeNetwork)
-            this._activeConnectionItem = new NMNetworkMenuItem(this.device.active_access_point, undefined,
-                                                               { reactive: false });
-        else
-            this._activeConnectionItem = new PopupMenu.PopupImageMenuItem(title,
-                                                                          
'network-wireless-connected-symbolic',
-                                                                          { reactive: false });
+        this._activeConnectionItem = new NMNetworkMenuItem(this.device.active_access_point, undefined,
+                                                           { reactive: false });
         this._activeConnectionItem.setOrnament(PopupMenu.Ornament.DOT);
     },
 


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