From 33718ef7a50def661cd038fd47e62c37f90f434a Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Sat, 17 Sep 2011 12:36:49 -0400 Subject: [PATCH] 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 --- js/ui/panel.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/js/ui/panel.js b/js/ui/panel.js index 3976025bb..b4f18efa5 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -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) {