[gnome-shell] panel: drop dead code



commit 33718ef7a50def661cd038fd47e62c37f90f434a
Author: Ray Strode <rstrode redhat com>
Date:   Sat Sep 17 12:36:49 2011 -0400

    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 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/js/ui/panel.js b/js/ui/panel.js
index 3976025..b4f18ef 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) {



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