[gnome-shell-extensions/wip/fmuellner/cleanups: 6/15] cleanup: Remove empty init() functions



commit b741b1bbe2ae26d7e288a378dae539fa4e9e7150
Author: Florian Müllner <fmuellner gnome org>
Date:   Sat Jan 26 22:07:34 2019 +0100

    cleanup: Remove empty init() functions
    
    The method is optional, so there's no point at all in letting the
    shell call an empty method during initialization.
    
    https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/49

 extensions/launch-new-instance/extension.js     | 3 ---
 extensions/native-window-placement/extension.js | 4 ----
 extensions/screenshot-window-sizer/extension.js | 3 ---
 extensions/windowsNavigator/extension.js        | 4 ----
 4 files changed, 14 deletions(-)
---
diff --git a/extensions/launch-new-instance/extension.js b/extensions/launch-new-instance/extension.js
index 07830c5..0cbc49d 100644
--- a/extensions/launch-new-instance/extension.js
+++ b/extensions/launch-new-instance/extension.js
@@ -2,9 +2,6 @@ const AppDisplay = imports.ui.appDisplay;
 
 let _activateOriginal = null;
 
-function init() {
-}
-
 function enable() {
   _activateOriginal = AppDisplay.AppIcon.prototype.activate;
   AppDisplay.AppIcon.prototype.activate = function() {
diff --git a/extensions/native-window-placement/extension.js b/extensions/native-window-placement/extension.js
index 5c6c9d8..4b9fba3 100644
--- a/extensions/native-window-placement/extension.js
+++ b/extensions/native-window-placement/extension.js
@@ -284,7 +284,3 @@ function disable() {
     global.stage.queue_relayout();
     resetState();
 }
-
-function init() {
-    /* do nothing */
-}
diff --git a/extensions/screenshot-window-sizer/extension.js b/extensions/screenshot-window-sizer/extension.js
index 5aa6b1d..e97d2d9 100644
--- a/extensions/screenshot-window-sizer/extension.js
+++ b/extensions/screenshot-window-sizer/extension.js
@@ -136,9 +136,6 @@ function cycleScreenshotSizes(display, window, binding) {
     flashMessage(message);
 }
 
-function init() {
-}
-
 function enable() {
     Main.wm.addKeybinding('cycle-screenshot-sizes',
                           Convenience.getSettings(),
diff --git a/extensions/windowsNavigator/extension.js b/extensions/windowsNavigator/extension.js
index 16ed85d..4777e94 100644
--- a/extensions/windowsNavigator/extension.js
+++ b/extensions/windowsNavigator/extension.js
@@ -284,7 +284,3 @@ function disable() {
 
     resetState();
 }
-
-function init() {
-    /* do nothing */
-}


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