[gnome-shell-extensions/wip/fmuellner/cleanups: 7/15] cleanup: Remove unhelpful unused init() argument



commit 912ba1e6513b41680c552f0f7365ad988a6688c1
Author: Florian Müllner <fmuellner gnome org>
Date:   Sat Jan 26 22:04:09 2019 +0100

    cleanup: Remove unhelpful unused init() argument
    
    Virtually all extensions use the getCurrentExtension() helper instead
    of the obscure init() argument, and we are no exception.
    
    https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/49

 extensions/apps-menu/extension.js           | 2 +-
 extensions/workspace-indicator/extension.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/extensions/apps-menu/extension.js b/extensions/apps-menu/extension.js
index 3096c25..7a3690c 100644
--- a/extensions/apps-menu/extension.js
+++ b/extensions/apps-menu/extension.js
@@ -761,6 +761,6 @@ function disable() {
     activitiesButton.container.show();
 }
 
-function init(metadata) {
+function init() {
     Convenience.initTranslations();
 }
diff --git a/extensions/workspace-indicator/extension.js b/extensions/workspace-indicator/extension.js
index f7288fb..5f14c4e 100644
--- a/extensions/workspace-indicator/extension.js
+++ b/extensions/workspace-indicator/extension.js
@@ -134,7 +134,7 @@ class WorkspaceIndicator extends PanelMenu.Button {
     }
 });
 
-function init(meta) {
+function init() {
     Convenience.initTranslations();
 }
 


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