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
This commit is contained in:
parent
e0b8ad7911
commit
a67b82e730
@ -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);
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user