panel: drop dead code

The _userMenu variable never gets initialized anymore,
so remove some code that only gets run when it's defined.

https://bugzilla.gnome.org/show_bug.cgi?id=651299
This commit is contained in:
Ray Strode 2011-09-17 12:36:49 -04:00
parent a94a62764d
commit 33718ef7a5

View File

@ -1054,11 +1054,6 @@ Panel.prototype = {
let indicator = new constructor();
this.addToStatusArea(role, indicator, i);
}
// PopupMenuManager depends on menus being added in order for
// keyboard navigation
if (this._userMenu)
this._menus.addMenu(this._userMenu.menu);
},
_insertStatusItem: function(actor, position) {