[gnome-shell-extensions/wip/fmuellner/cleanups: 2/15] apps-menu: Remove unused function parameter
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-extensions/wip/fmuellner/cleanups: 2/15] apps-menu: Remove unused function parameter
- Date: Mon, 28 Jan 2019 05:37:55 +0000 (UTC)
commit a092da25276865000e9cdcf463dfab320e7623b9
Author: Florian Müllner <fmuellner gnome org>
Date: Sat Jan 26 21:58:04 2019 +0100
apps-menu: Remove unused function parameter
It hasn't been used since commit d86044f383b28.
https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/49
extensions/apps-menu/extension.js | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/extensions/apps-menu/extension.js b/extensions/apps-menu/extension.js
index adc77a4..48553f0 100644
--- a/extensions/apps-menu/extension.js
+++ b/extensions/apps-menu/extension.js
@@ -87,7 +87,7 @@ class ApplicationMenuItem extends PopupMenu.PopupBaseMenuItem {
activate(event) {
this._app.open_new_window(-1);
- this._button.selectCategory(null, null);
+ this._button.selectCategory(null);
this._button.menu.toggle();
super.activate(event);
}
@@ -135,7 +135,7 @@ class CategoryMenuItem extends PopupMenu.PopupBaseMenuItem {
}
activate(event) {
- this._button.selectCategory(this._category, this);
+ this._button.selectCategory(this._category);
this._button.scrollToCatButton(this);
super.activate(event);
}
@@ -222,7 +222,7 @@ class CategoryMenuItem extends PopupMenu.PopupBaseMenuItem {
setActive(active, params) {
if (active) {
- this._button.selectCategory(this._category, this);
+ this._button.selectCategory(this._category);
this._button.scrollToCatButton(this);
}
super.setActive(active, params);
@@ -256,7 +256,7 @@ class ApplicationsMenu extends PopupMenu.PopupMenu {
toggle() {
if (this.isOpen) {
- this._button.selectCategory(null, null);
+ this._button.selectCategory(null);
} else {
if (Main.overview.visible)
Main.overview.hide();
@@ -693,7 +693,7 @@ class ApplicationsButton extends PanelMenu.Button {
this.mainBox.style+=('height: ' + height);
}
- selectCategory(dir, categoryMenuItem) {
+ selectCategory(dir) {
this.applicationsBox.get_children().forEach(c => {
if (c._delegate instanceof PopupMenu.PopupSeparatorMenuItem)
c._delegate.destroy();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]