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
This commit is contained in:
Florian Müllner
2019-01-26 22:07:34 +01:00
parent d7414025a5
commit b741b1bbe2
4 changed files with 0 additions and 14 deletions

View File

@@ -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() {

View File

@@ -284,7 +284,3 @@ function disable() {
global.stage.queue_relayout();
resetState();
}
function init() {
/* do nothing */
}

View File

@@ -136,9 +136,6 @@ function cycleScreenshotSizes(display, window, binding) {
flashMessage(message);
}
function init() {
}
function enable() {
Main.wm.addKeybinding('cycle-screenshot-sizes',
Convenience.getSettings(),

View File

@@ -284,7 +284,3 @@ function disable() {
resetState();
}
function init() {
/* do nothing */
}