From 08a04b2f02d44523fc345d82bce621094f9de4d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sun, 27 Jan 2019 00:12:20 +0100 Subject: [PATCH] cleanup: Mark unused (but useful) variables as ignored While we aren't using those destructured variables, they are still useful to document the meaning of those elements. We don't want eslint to keep warning about them though, so mark them accordingly. https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/50 --- extensions/auto-move-windows/prefs.js | 4 ++-- extensions/windowsNavigator/extension.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/auto-move-windows/prefs.js b/extensions/auto-move-windows/prefs.js index d995ed77..7e68a764 100644 --- a/extensions/auto-move-windows/prefs.js +++ b/extensions/auto-move-windows/prefs.js @@ -157,7 +157,7 @@ const Widget = GObject.registerClass({ } _deleteSelected() { - let [any, model, iter] = this._treeView.get_selection().get_selected(); + let [any, model_, iter] = this._treeView.get_selection().get_selected(); if (any) { let appInfo = this._store.get_value(iter, Columns.APPINFO); @@ -174,7 +174,7 @@ const Widget = GObject.registerClass({ if (isNaN(index) || index < 0) index = 1; let path = Gtk.TreePath.new_from_string(pathString); - let [model, iter] = this._store.get_iter(path); + let [model_, iter] = this._store.get_iter(path); let appInfo = this._store.get_value(iter, Columns.APPINFO); this._changedPermitted = false; diff --git a/extensions/windowsNavigator/extension.js b/extensions/windowsNavigator/extension.js index bc46db65..805b0b48 100644 --- a/extensions/windowsNavigator/extension.js +++ b/extensions/windowsNavigator/extension.js @@ -219,7 +219,7 @@ function enable() { }); winInjections['relayout'] = injectToFunction(Workspace.WindowOverlay.prototype, 'relayout', function(_animate) { - let [cloneX, cloneY, cloneWidth, cloneHeight] = this._windowClone.slot; + let [cloneX, cloneY, cloneWidth_, cloneHeight_] = this._windowClone.slot; let textX = cloneX - 2; let textY = cloneY - 2;