cleanup: Mark unused arguments as unused

This will stop eslint from warning about them, while keeping their
self-documenting benefit.

https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/50
This commit is contained in:
Florian Müllner
2019-01-26 22:04:09 +01:00
parent 85112394b3
commit 7b363fd659
5 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -367,7 +367,7 @@ class DesktopTarget {
this._setDesktop(null);
}
handleDragOver(source, actor, x, y, time) {
handleDragOver(source, _actor, _x, _y, _time) {
let appInfo = this._getSourceAppInfo(source);
if (!appInfo)
return DND.DragMotionResult.CONTINUE;
@@ -375,7 +375,7 @@ class DesktopTarget {
return DND.DragMotionResult.COPY_DROP;
}
acceptDrop(source, actor, x, y, time) {
acceptDrop(source, _actor, _x, _y, _time) {
let appInfo = this._getSourceAppInfo(source);
if (!appInfo)
return false;
+4 -4
View File
@@ -258,7 +258,7 @@ class BaseButton {
this._onClicked(this.actor, 1);
}
_onClicked(actor, button) {
_onClicked(_actor, _button) {
throw new Error('Not implemented');
}
@@ -266,7 +266,7 @@ class BaseButton {
return true;
}
_onPopupMenu(actor) {
_onPopupMenu(_actor) {
if (!this._canOpenPopupMenu() || this._contextMenu.isOpen)
return;
_openMenu(this._contextMenu);
@@ -283,7 +283,7 @@ class BaseButton {
this.actor.remove_style_class_name('focused');
}
_windowEnteredOrLeftMonitor(metaDisplay, monitorIndex, metaWindow) {
_windowEnteredOrLeftMonitor(_metaDisplay, _monitorIndex, _metaWindow) {
throw new Error('Not implemented');
}
@@ -719,7 +719,7 @@ class WorkspaceIndicator extends PanelMenu.Button {
let item = new PopupMenu.PopupMenuItem(name);
item.workspaceId = i;
item.connect('activate', (item, event) => {
item.connect('activate', (item, _event) => {
this._activate(item.workspaceId);
});
+2 -2
View File
@@ -218,7 +218,7 @@ function enable() {
parentActor.add_actor(this._text);
});
winInjections['relayout'] = injectToFunction(Workspace.WindowOverlay.prototype, 'relayout', function(animate) {
winInjections['relayout'] = injectToFunction(Workspace.WindowOverlay.prototype, 'relayout', function(_animate) {
let [cloneX, cloneY, cloneWidth, cloneHeight] = this._windowClone.slot;
let textX = cloneX - 2;
@@ -241,7 +241,7 @@ function enable() {
this._tip = null;
});
workViewInjections['_init'] = injectToFunction(WorkspacesView.WorkspacesView.prototype, '_init', function(width, height, x, y, workspaces) {
workViewInjections['_init'] = injectToFunction(WorkspacesView.WorkspacesView.prototype, '_init', function(_width, _height, _x, _y, _workspaces) {
this._pickWorkspace = false;
this._pickWindow = false;
this._keyPressEventId =
+1 -1
View File
@@ -98,7 +98,7 @@ class WorkspaceIndicator extends PanelMenu.Button {
this._workspaceSection.addMenuItem(this.workspacesItems[i]);
this.workspacesItems[i].workspaceId = i;
this.workspacesItems[i].label_actor = this.statusLabel;
this.workspacesItems[i].connect('activate', (actor, event) => {
this.workspacesItems[i].connect('activate', (actor, _event) => {
this._activate(actor.workspaceId);
});
+1 -1
View File
@@ -190,7 +190,7 @@ class WorkspaceSettingsWidget extends Gtk.Grid {
}
_delClicked() {
let [any, model, iter] = this._treeView.get_selection().get_selected();
let [any, model_, iter] = this._treeView.get_selection().get_selected();
if (any)
this._store.remove(iter);