[gnome-shell-extensions] window-list: Remove some dead code



commit b6a3503f5e76c28088a22c9732fd436449c488a1
Author: Florian Müllner <fmuellner gnome org>
Date:   Tue Jul 7 17:05:16 2020 +0200

    window-list: Remove some dead code
    
    Since PanelMenu.Button started to inherit from St.Widget, the custom
    _allocate() function isn't called anymore.
    
    Simply changing the function to vfunc_allocate() doesn't work as other
    changes happened in the meantime, so for now just remove it altogether.
    
    https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/124

 extensions/window-list/workspaceIndicator.js | 5 -----
 1 file changed, 5 deletions(-)
---
diff --git a/extensions/window-list/workspaceIndicator.js b/extensions/window-list/workspaceIndicator.js
index eafe241..ca3dc61 100644
--- a/extensions/window-list/workspaceIndicator.js
+++ b/extensions/window-list/workspaceIndicator.js
@@ -388,10 +388,5 @@ class WorkspaceIndicator extends PanelMenu.Button {
         let newIndex = this._currentWorkspace + diff;
         this._activate(newIndex);
     }
-
-    _allocate(actor, box, flags) {
-        if (actor.get_n_children() > 0)
-            actor.get_first_child().allocate(box, flags);
-    }
 });
 


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