From a67b82e730f60a5e1f39ff0585bb282d0530911b Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Thu, 25 Apr 2013 21:16:33 -0400 Subject: [PATCH] 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 file changed, 2 insertions(+), 7 deletions(-) diff --git a/js/ui/status/network.js b/js/ui/status/network.js index 9eb811fcd..3f086b39f 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); },