[gnome-shell] cleanup: Mark unused arguments as unused



commit 2f97a1a55d279f5a504a6eae6a1a54d90cc0a654
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Jan 31 15:08:10 2019 +0100

    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/merge_requests/627

 js/gdm/loginDialog.js                |  2 +-
 js/gdm/util.js                       |  2 +-
 js/misc/inputMethod.js               |  6 +++---
 js/misc/loginManager.js              |  2 +-
 js/misc/modemManager.js              |  2 +-
 js/perf/core.js                      |  4 ++--
 js/perf/hwtest.js                    | 14 +++++++-------
 js/portalHelper/main.js              |  2 +-
 js/ui/accessDialog.js                |  2 +-
 js/ui/altTab.js                      |  4 ++--
 js/ui/appDisplay.js                  |  6 +++---
 js/ui/barLevel.js                    |  2 +-
 js/ui/calendar.js                    | 10 +++++-----
 js/ui/components/automountManager.js |  2 +-
 js/ui/components/networkAgent.js     |  4 ++--
 js/ui/components/polkitAgent.js      |  4 ++--
 js/ui/components/telepathyClient.js  |  6 +++---
 js/ui/dash.js                        |  8 ++++----
 js/ui/edgeDragAction.js              |  6 +++---
 js/ui/endSessionDialog.js            |  2 +-
 js/ui/ibusCandidatePopup.js          |  4 ++--
 js/ui/iconGrid.js                    |  8 ++++----
 js/ui/keyboard.js                    |  4 ++--
 js/ui/layout.js                      |  8 ++++----
 js/ui/lookingGlass.js                |  2 +-
 js/ui/messageTray.js                 |  2 +-
 js/ui/overview.js                    |  6 +++---
 js/ui/panel.js                       |  6 +++---
 js/ui/panelMenu.js                   |  4 ++--
 js/ui/popupMenu.js                   |  2 +-
 js/ui/remoteSearch.js                |  2 +-
 js/ui/screenShield.js                |  2 +-
 js/ui/search.js                      |  2 +-
 js/ui/shellMountOperation.js         |  4 ++--
 js/ui/slider.js                      |  2 +-
 js/ui/status/keyboard.js             |  2 +-
 js/ui/status/network.js              |  8 ++++----
 js/ui/switcherPopup.js               |  8 ++++----
 js/ui/viewSelector.js                |  6 +++---
 js/ui/windowManager.js               | 18 +++++++++---------
 js/ui/workspace.js                   | 16 ++++++++--------
 js/ui/workspaceSwitcherPopup.js      |  2 +-
 js/ui/workspaceThumbnail.js          | 10 +++++-----
 js/ui/workspacesView.js              |  2 +-
 44 files changed, 110 insertions(+), 110 deletions(-)
---
diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js
index da5ed912c..f9738dea3 100644
--- a/js/gdm/loginDialog.js
+++ b/js/gdm/loginDialog.js
@@ -1241,7 +1241,7 @@ var LoginDialog = GObject.registerClass({
         this._authPrompt.cancel();
     }
 
-    addCharacter(unichar) {
+    addCharacter(_unichar) {
         // Don't allow type ahead at the login screen
     }
 
diff --git a/js/gdm/util.js b/js/gdm/util.js
index f2cab009c..82938f266 100644
--- a/js/gdm/util.js
+++ b/js/gdm/util.js
@@ -303,7 +303,7 @@ var ShellUserVerifier = class {
             });
     }
 
-    _oVirtUserAuthenticated(token) {
+    _oVirtUserAuthenticated(_token) {
         this._preemptingService = OVIRT_SERVICE_NAME;
         this.emit('ovirt-user-authenticated');
     }
diff --git a/js/misc/inputMethod.js b/js/misc/inputMethod.js
index 3f24586d7..03b44aad8 100644
--- a/js/misc/inputMethod.js
+++ b/js/misc/inputMethod.js
@@ -84,7 +84,7 @@ class InputMethod extends Clutter.InputMethod {
             this.emit('request-surrounding');
     }
 
-    _onCommitText(context, text) {
+    _onCommitText(_context, text) {
         this.commit(text.get_text());
     }
 
@@ -92,7 +92,7 @@ class InputMethod extends Clutter.InputMethod {
         this.delete_surrounding();
     }
 
-    _onUpdatePreeditText(context, text, pos, visible) {
+    _onUpdatePreeditText(_context, text, pos, visible) {
         if (text == null)
             return;
 
@@ -118,7 +118,7 @@ class InputMethod extends Clutter.InputMethod {
         this._preeditVisible = false;
     }
 
-    _onForwardKeyEvent(context, keyval, keycode, state) {
+    _onForwardKeyEvent(_context, keyval, keycode, state) {
         let press = (state & IBus.ModifierType.RELEASE_MASK) == 0;
         state &= ~(IBus.ModifierType.RELEASE_MASK);
 
diff --git a/js/misc/loginManager.js b/js/misc/loginManager.js
index 1d2c35cf2..fa5807794 100644
--- a/js/misc/loginManager.js
+++ b/js/misc/loginManager.js
@@ -199,7 +199,7 @@ var LoginManagerSystemd = class {
 Signals.addSignalMethods(LoginManagerSystemd.prototype);
 
 var LoginManagerDummy = class {
-    getCurrentSessionProxy(callback) {
+    getCurrentSessionProxy(_callback) {
         // we could return a DummySession object that fakes whatever callers
         // expect (at the time of writing: connect() and connectSignal()
         // methods), but just never calling the callback should be safer
diff --git a/js/misc/modemManager.js b/js/misc/modemManager.js
index a3bd4f94c..c72253ab6 100644
--- a/js/misc/modemManager.js
+++ b/js/misc/modemManager.js
@@ -110,7 +110,7 @@ var ModemGsm = class {
             this.signal_quality = quality;
             this.emit('notify::signal-quality');
         });
-        this._proxy.connectSignal('RegistrationInfo', (proxy, sender, [status, code, name]) => {
+        this._proxy.connectSignal('RegistrationInfo', (proxy, sender, [_status, code, name]) => {
             this.operator_name = _findProviderForMccMnc(name, code);
             this.emit('notify::operator-name');
         });
diff --git a/js/perf/core.js b/js/perf/core.js
index 17a37c6a9..fb40fe3b2 100644
--- a/js/perf/core.js
+++ b/js/perf/core.js
@@ -147,7 +147,7 @@ function script_overviewShowStart(time) {
     overviewFrames = 0;
 }
 
-function script_overviewShowDone(time) {
+function script_overviewShowDone(_time) {
     // We've set up the state at the end of the zoom out, but we
     // need to wait for one more frame to paint before we count
     // ourselves as done.
@@ -166,7 +166,7 @@ function script_applicationsShowDone(time) {
         METRICS.applicationsShowTimeSubsequent.value = time - applicationsShowStart;
 }
 
-function script_afterShowHide(time) {
+function script_afterShowHide(_time) {
     if (overviewShowCount == 1) {
         METRICS.usedAfterOverview.value = mallocUsedSize;
     } else {
diff --git a/js/perf/hwtest.js b/js/perf/hwtest.js
index b1d7ba0d2..43b663c2d 100644
--- a/js/perf/hwtest.js
+++ b/js/perf/hwtest.js
@@ -234,31 +234,31 @@ function script_applicationsShowDone(time) {
     METRICS.applicationsShowTime.value = time - applicationsShowStart;
 }
 
-function script_mainViewDrawStart(time) {
+function script_mainViewDrawStart(_time) {
     redrawTiming = 'mainView';
 }
 
-function script_mainViewDrawDone(time) {
+function script_mainViewDrawDone(_time) {
     redrawTiming = null;
 }
 
-function script_overviewDrawStart(time) {
+function script_overviewDrawStart(_time) {
     redrawTiming = 'overview';
 }
 
-function script_overviewDrawDone(time) {
+function script_overviewDrawDone(_time) {
     redrawTiming = null;
 }
 
-function script_redrawTestStart(time) {
+function script_redrawTestStart(_time) {
     redrawTiming = 'application';
 }
 
-function script_redrawTestDone(time) {
+function script_redrawTestDone(_time) {
     redrawTiming = null;
 }
 
-function script_collectTimings(time) {
+function script_collectTimings(_time) {
     for (let timing in redrawTimes) {
         let times = redrawTimes[timing];
         times.sort((a, b) => a - b);
diff --git a/js/portalHelper/main.js b/js/portalHelper/main.js
index 76f7e7ccb..d8f500e89 100644
--- a/js/portalHelper/main.js
+++ b/js/portalHelper/main.js
@@ -177,7 +177,7 @@ class PortalWindow extends Gtk.ApplicationWindow {
         this._headerBar.setSecurityIcon(PortalHelperSecurityLevel.INSECURE);
     }
 
-    _onLoadFailedWithTlsErrors(view, failingURI, certificate, errors) {
+    _onLoadFailedWithTlsErrors(view, failingURI, certificate, _errors) {
         this._headerBar.setSecurityIcon(PortalHelperSecurityLevel.INSECURE);
         let uri = new Soup.URI(failingURI);
         this._webContext.allow_tls_certificate_for_host(certificate, uri.get_host());
diff --git a/js/ui/accessDialog.js b/js/ui/accessDialog.js
index eca67a7d4..9dbc1a910 100644
--- a/js/ui/accessDialog.js
+++ b/js/ui/accessDialog.js
@@ -79,7 +79,7 @@ class AccessDialog extends ModalDialog.ModalDialog {
         this._requestExported = this._request.export(connection, this._handle);
     }
 
-    CloseAsync(invocation, params) {
+    CloseAsync(invocation, _params) {
         if (this._invocation.get_sender() != invocation.get_sender()) {
             invocation.return_error_literal(Gio.DBusError,
                                             Gio.DBusError.ACCESS_DENIED,
diff --git a/js/ui/altTab.js b/js/ui/altTab.js
index 76679dc7f..fecef9a9b 100644
--- a/js/ui/altTab.js
+++ b/js/ui/altTab.js
@@ -469,7 +469,7 @@ var CyclerList = GObject.registerClass({
                'item-removed': { param_types: [GObject.TYPE_INT] },
                'item-highlighted': { param_types: [GObject.TYPE_INT] } },
 }, class CyclerList extends St.Widget {
-    highlight(index, justOutline) {
+    highlight(index, _justOutline) {
         this.emit('item-highlighted', index);
     }
 });
@@ -494,7 +494,7 @@ var CyclerPopup = GObject.registerClass({
         });
     }
 
-    _highlightItem(index, justOutline) {
+    _highlightItem(index, _justOutline) {
         this._highlight.window = this._items[index];
         global.window_group.set_child_above_sibling(this._highlight.actor, null);
     }
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 189c94380..80823fda7 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -109,7 +109,7 @@ class BaseAppView {
         this._allItems = [];
     }
 
-    _childFocused(actor) {
+    _childFocused(_actor) {
         // Nothing by default
     }
 
@@ -986,7 +986,7 @@ var AppSearchProvider = class AppSearchProvider {
         return results.slice(0, maxNumber);
     }
 
-    getInitialResultSet(terms, callback, cancellable) {
+    getInitialResultSet(terms, callback, _cancellable) {
         let query = terms.join(' ');
         let groups = Shell.AppSystem.search(query);
         let usage = Shell.AppUsage.get_default();
@@ -1864,7 +1864,7 @@ var AppIconMenu = class AppIconMenu extends PopupMenu.PopupMenu {
         return item;
     }
 
-    popup(activatingButton) {
+    popup(_activatingButton) {
         this._redisplay();
         this.open();
     }
diff --git a/js/ui/barLevel.js b/js/ui/barLevel.js
index afe71c9fb..6b2f69b63 100644
--- a/js/ui/barLevel.js
+++ b/js/ui/barLevel.js
@@ -188,7 +188,7 @@ var BarLevel = class {
         return this._maxValue;
     }
 
-    _setCurrentValue(actor, value) {
+    _setCurrentValue(_actor, value) {
         this._value = value;
     }
 
diff --git a/js/ui/calendar.js b/js/ui/calendar.js
index a728c1fb9..b74e0e81d 100644
--- a/js/ui/calendar.js
+++ b/js/ui/calendar.js
@@ -109,15 +109,15 @@ var EmptyEventSource = class EmptyEventSource {
     destroy() {
     }
 
-    requestRange(begin, end) {
+    requestRange(_begin, _end) {
     }
 
-    getEvents(begin, end) {
+    getEvents(_begin, _end) {
         let result = [];
         return result;
     }
 
-    hasEvents(day) {
+    hasEvents(_day) {
         return false;
     }
 };
@@ -235,7 +235,7 @@ var DBusEventSource = class DBusEventSource {
         this._loadEvents(false);
     }
 
-    _onEventsReceived(results, error) {
+    _onEventsReceived(results, _error) {
         let newEvents = [];
         let appointments = results[0] || [];
         for (let n = 0; n < appointments.length; n++) {
@@ -734,7 +734,7 @@ class NotificationMessage extends MessageList.Message {
             return this.notification.source.createIcon(MESSAGE_ICON_SIZE);
     }
 
-    _onUpdated(n, clear) {
+    _onUpdated(n, _clear) {
         this.setIcon(this._getIcon());
         this.setTitle(n.title);
         this.setBody(n.bannerBodyText);
diff --git a/js/ui/components/automountManager.js b/js/ui/components/automountManager.js
index 4d9d61b02..f01b16926 100644
--- a/js/ui/components/automountManager.js
+++ b/js/ui/components/automountManager.js
@@ -55,7 +55,7 @@ var AutomountManager = class {
         }
     }
 
-    _InhibitorsChanged(object, senderName, [inhibtor]) {
+    _InhibitorsChanged(_object, _senderName, [_inhibitor]) {
         this._session.IsInhibitedRemote(GNOME_SESSION_AUTOMOUNT_INHIBIT,
             (result, error) => {
                 if (!error) {
diff --git a/js/ui/components/networkAgent.js b/js/ui/components/networkAgent.js
index d071190ca..597bb1883 100644
--- a/js/ui/components/networkAgent.js
+++ b/js/ui/components/networkAgent.js
@@ -199,7 +199,7 @@ class NetworkSecretDialog extends ModalDialog.ModalDialog {
         return true;
     }
 
-    _getWirelessSecrets(secrets, wirelessSetting) {
+    _getWirelessSecrets(secrets, _wirelessSetting) {
         let wirelessSecuritySetting = this._connection.get_setting_wireless_security();
 
         if (this._settingName == '802-1x') {
@@ -444,7 +444,7 @@ var VPNRequestHandler = class {
         this._destroyed = true;
     }
 
-    _vpnChildFinished(pid, status, requestObj) {
+    _vpnChildFinished(pid, status, _requestObj) {
         this._childWatch = 0;
         if (this._newStylePlugin) {
             // For new style plugin, all work is done in the async reading functions
diff --git a/js/ui/components/polkitAgent.js b/js/ui/components/polkitAgent.js
index 4027b480c..3c592fcd7 100644
--- a/js/ui/components/polkitAgent.js
+++ b/js/ui/components/polkitAgent.js
@@ -383,11 +383,11 @@ var AuthenticationAgent = class {
         this._currentDialog.performAuthentication();
     }
 
-    _onCancel(nativeAgent) {
+    _onCancel(_nativeAgent) {
         this._completeRequest(false);
     }
 
-    _onDialogDone(dialog, dismissed) {
+    _onDialogDone(_dialog, dismissed) {
         this._completeRequest(dismissed);
     }
 
diff --git a/js/ui/components/telepathyClient.js b/js/ui/components/telepathyClient.js
index dadca7b4d..0fefd960e 100644
--- a/js/ui/components/telepathyClient.js
+++ b/js/ui/components/telepathyClient.js
@@ -260,7 +260,7 @@ class TelepathyClient extends Tp.BaseClient {
         context.accept();
     }
 
-    _delegatedChannelsCb(client, channels) {
+    _delegatedChannelsCb(_client, _channels) {
         // Nothing to do as we don't make a distinction between observed and
         // handled channels.
     }
@@ -562,7 +562,7 @@ var ChatSource = class extends MessageTray.Source {
 
     // This is called for both messages we send from
     // our client and other clients as well.
-    _messageSent(channel, message, flags, token) {
+    _messageSent(channel, message, _flags, _token) {
         this._ensureNotification();
         message = makeMessageFromTpMessage(message, NotificationDirection.SENT);
         this._notification.appendMessage(message);
@@ -600,7 +600,7 @@ var ChatSource = class extends MessageTray.Source {
         }
     }
 
-    _presenceChanged(contact, presence, status, message) {
+    _presenceChanged(_contact, _presence, _status, _message) {
         if (this._notification)
             this._notification.update(this._notification.title,
                                       this._notification.bannerBodyText,
diff --git a/js/ui/dash.js b/js/ui/dash.js
index 572f4f480..803a46dc7 100644
--- a/js/ui/dash.js
+++ b/js/ui/dash.js
@@ -241,14 +241,14 @@ class ShowAppsIcon extends DashItemContainer {
             this.setLabelText(_("Show Applications"));
     }
 
-    handleDragOver(source, actor, x, y, time) {
+    handleDragOver(source, _actor, _x, _y, _time) {
         if (!this._canRemoveApp(getAppFromSource(source)))
             return DND.DragMotionResult.NO_DROP;
 
         return DND.DragMotionResult.MOVE_DROP;
     }
 
-    acceptDrop(source, actor, x, y, time) {
+    acceptDrop(source, _actor, _x, _y, _time) {
         let app = getAppFromSource(source);
         if (!this._canRemoveApp(app))
             return false;
@@ -790,7 +790,7 @@ var Dash = class Dash {
         }
     }
 
-    handleDragOver(source, actor, x, y, time) {
+    handleDragOver(source, actor, x, y, _time) {
         let app = getAppFromSource(source);
 
         // Don't allow favoriting of transient apps
@@ -868,7 +868,7 @@ var Dash = class Dash {
     }
 
     // Draggable target interface
-    acceptDrop(source, actor, x, y, time) {
+    acceptDrop(source, _actor, _x, _y, _time) {
         let app = getAppFromSource(source);
 
         // Don't allow favoriting of transient apps
diff --git a/js/ui/edgeDragAction.js b/js/ui/edgeDragAction.js
index 7b048c691..9ec57e8ec 100644
--- a/js/ui/edgeDragAction.js
+++ b/js/ui/edgeDragAction.js
@@ -26,7 +26,7 @@ var EdgeDragAction = GObject.registerClass({
         return global.display.get_monitor_geometry(monitorIndex);
     }
 
-    vfunc_gesture_prepare(actor) {
+    vfunc_gesture_prepare(_actor) {
         if (this.get_n_current_points() == 0)
             return false;
 
@@ -42,7 +42,7 @@ var EdgeDragAction = GObject.registerClass({
                 (this._side == St.Side.BOTTOM && y > monitorRect.y + monitorRect.height - EDGE_THRESHOLD));
     }
 
-    vfunc_gesture_progress(actor) {
+    vfunc_gesture_progress(_actor) {
         let [startX, startY] = this.get_press_coords(0);
         let [x, y] = this.get_motion_coords(0);
         let offsetX = Math.abs (x - startX);
@@ -62,7 +62,7 @@ var EdgeDragAction = GObject.registerClass({
         return true;
     }
 
-    vfunc_gesture_end(actor) {
+    vfunc_gesture_end(_actor) {
         let [startX, startY] = this.get_press_coords(0);
         let [x, y] = this.get_motion_coords(0);
         let monitorRect = this._getMonitorRect(startX, startY);
diff --git a/js/ui/endSessionDialog.js b/js/ui/endSessionDialog.js
index 864fd084c..5288badc8 100644
--- a/js/ui/endSessionDialog.js
+++ b/js/ui/endSessionDialog.js
@@ -778,7 +778,7 @@ class EndSessionDialog extends ModalDialog.ModalDialog {
         });
     }
 
-    Close(parameters, invocation) {
+    Close(_parameters, _invocation) {
         this.close();
     }
 });
diff --git a/js/ui/ibusCandidatePopup.js b/js/ui/ibusCandidatePopup.js
index f2e9350c7..75ddfafba 100644
--- a/js/ui/ibusCandidatePopup.js
+++ b/js/ui/ibusCandidatePopup.js
@@ -206,7 +206,7 @@ var CandidatePopup = class CandidatePopup {
             this._preeditText.hide();
             this._updateVisibility();
         });
-        panelService.connect('update-auxiliary-text', (ps, text, visible) => {
+        panelService.connect('update-auxiliary-text', (_ps, text, visible) => {
             this._auxText.visible = visible;
             this._updateVisibility();
 
@@ -220,7 +220,7 @@ var CandidatePopup = class CandidatePopup {
             this._auxText.hide();
             this._updateVisibility();
         });
-        panelService.connect('update-lookup-table', (ps, lookupTable, visible) => {
+        panelService.connect('update-lookup-table', (_ps, lookupTable, visible) => {
             this._candidateArea.actor.visible = visible;
             this._updateVisibility();
 
diff --git a/js/ui/iconGrid.js b/js/ui/iconGrid.js
index 3f6064e95..c80f7fe1a 100644
--- a/js/ui/iconGrid.js
+++ b/js/ui/iconGrid.js
@@ -71,14 +71,14 @@ class BaseIcon extends St.Bin {
         this._iconThemeChangedId = cache.connect('icon-theme-changed', this._onIconThemeChanged.bind(this));
     }
 
-    vfunc_get_preferred_width(forHeight) {
+    vfunc_get_preferred_width(_forHeight) {
         // Return the actual height to keep the squared aspect
         return this.get_preferred_height(-1);
     }
 
     // This can be overridden by a subclass, or by the createIcon
     // parameter to _init()
-    createIcon(size) {
+    createIcon(_size) {
         throw new GObject.NotImplementedError(`createIcon in ${this.constructor.name}`);
     }
 
@@ -247,7 +247,7 @@ var IconGrid = GObject.registerClass({
         child.disconnect(child._iconGridKeyFocusInId);
     }
 
-    vfunc_get_preferred_width(forHeight) {
+    vfunc_get_preferred_width(_forHeight) {
         if (this._fillParent)
             // Ignore all size requests of children and request a size of 0;
             // later we'll allocate as many children as fit the parent
@@ -797,7 +797,7 @@ var PaginatedIconGrid = GObject.registerClass({
         this._childrenPerPage = 0;
     }
 
-    vfunc_get_preferred_height(forWidth) {
+    vfunc_get_preferred_height(_forWidth) {
         let height = (this._availableHeightPerPageForItems() + this.bottomPadding + this.topPadding) * 
this._nPages + this._spaceBetweenPages * this._nPages;
         return [height, height];
     }
diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js
index 6b9640734..0372fb8ea 100644
--- a/js/ui/keyboard.js
+++ b/js/ui/keyboard.js
@@ -1282,7 +1282,7 @@ var Keyboard = class Keyboard {
                     }
                 }
             });
-            button.connect('released', (actor, keyval, str) => {
+            button.connect('released', (actor, keyval, _str) => {
                 if (keyval != 0) {
                     if (button._keyvalPress)
                         this._keyboardController.keyvalRelease(keyval);
@@ -1729,7 +1729,7 @@ var KeyboardController = class {
         this.emit('groups-changed');
     }
 
-    _onSourceChanged(inputSourceManager, oldSource) {
+    _onSourceChanged(inputSourceManager, _oldSource) {
         let source = inputSourceManager.currentSource;
         this._currentSource = source;
         this.emit('active-group', source.id);
diff --git a/js/ui/layout.js b/js/ui/layout.js
index 66ea05dfe..6e2664738 100644
--- a/js/ui/layout.js
+++ b/js/ui/layout.js
@@ -165,12 +165,12 @@ var Monitor = class Monitor {
 
 const UiActor = GObject.registerClass(
 class UiActor extends St.Widget {
-    vfunc_get_preferred_width (forHeight) {
+    vfunc_get_preferred_width (_forHeight) {
         let width = global.stage.width;
         return [width, width];
     }
 
-    vfunc_get_preferred_height (forWidth) {
+    vfunc_get_preferred_height (_forWidth) {
         let height = global.stage.height;
         return [height, height];
     }
@@ -1230,7 +1230,7 @@ var HotCorner = class HotCorner {
         }
     }
 
-    handleDragOver(source, actor, x, y, time) {
+    handleDragOver(source, _actor, _x, _y, _time) {
         if (source != Main.xdndHandler)
             return DND.DragMotionResult.CONTINUE;
 
@@ -1347,7 +1347,7 @@ var PressureBarrier = class PressureBarrier {
         this._barrierEvents = this._barrierEvents.slice(firstNewEvent);
     }
 
-    _onBarrierLeft(barrier, event) {
+    _onBarrierLeft(barrier, _event) {
         barrier._isHit = false;
         if (this._barriers.every(b => !b._isHit)) {
             this._reset();
diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js
index 4022d10c4..085f4bda8 100644
--- a/js/ui/lookingGlass.js
+++ b/js/ui/lookingGlass.js
@@ -856,7 +856,7 @@ var LookingGlass = class LookingGlass {
         this._extensions = new Extensions(this);
         notebook.appendPage('Extensions', this._extensions.actor);
 
-        this._entry.clutter_text.connect('activate', (o, e) => {
+        this._entry.clutter_text.connect('activate', (o, _e) => {
             // Hide any completions we are currently showing
             this._hideCompletions();
 
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index f8c6c79e7..ac38d7a67 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -827,7 +827,7 @@ Signals.addSignalMethods(Source.prototype);
 
 var MessageTray = class MessageTray {
     constructor() {
-        this._presence = new GnomeSession.Presence((proxy, error) => {
+        this._presence = new GnomeSession.Presence((proxy, _error) => {
             this._onStatusChanged(proxy.status);
         });
         this._busy = false;
diff --git a/js/ui/overview.js b/js/ui/overview.js
index 88acb0e9c..4db21b6df 100644
--- a/js/ui/overview.js
+++ b/js/ui/overview.js
@@ -386,16 +386,16 @@ var Overview = class {
         this.emit('windows-restacked', stackIndices);
     }
 
-    beginItemDrag(source) {
+    beginItemDrag(_source) {
         this.emit('item-drag-begin');
         this._inItemDrag = true;
     }
 
-    cancelledItemDrag(source) {
+    cancelledItemDrag(_source) {
         this.emit('item-drag-cancelled');
     }
 
-    endItemDrag(source) {
+    endItemDrag(_source) {
         if (!this._inItemDrag)
             return;
         this.emit('item-drag-end');
diff --git a/js/ui/panel.js b/js/ui/panel.js
index 850c2a965..e0c773572 100644
--- a/js/ui/panel.js
+++ b/js/ui/panel.js
@@ -446,14 +446,14 @@ class ActivitiesButton extends PanelMenu.Button {
         this._xdndTimeOut = 0;
     }
 
-    handleDragOver(source, actor, x, y, time) {
+    handleDragOver(source, _actor, _x, _y, _time) {
         if (source != Main.xdndHandler)
             return DND.DragMotionResult.CONTINUE;
 
         if (this._xdndTimeOut != 0)
             Mainloop.source_remove(this._xdndTimeOut);
         this._xdndTimeOut = Mainloop.timeout_add(BUTTON_DND_ACTIVATION_TIMEOUT, () => {
-            this._xdndToggleOverview(actor);
+            this._xdndToggleOverview();
         });
         GLib.Source.set_name_by_id(this._xdndTimeOut, '[gnome-shell] this._xdndToggleOverview');
 
@@ -826,7 +826,7 @@ class Panel extends St.Widget {
         this._updatePanel();
     }
 
-    vfunc_get_preferred_width(forHeight) {
+    vfunc_get_preferred_width(_forHeight) {
         let primaryMonitor = Main.layoutManager.primaryMonitor;
 
         if (primaryMonitor)
diff --git a/js/ui/panelMenu.js b/js/ui/panelMenu.js
index 9827e32b6..6d500f287 100644
--- a/js/ui/panelMenu.js
+++ b/js/ui/panelMenu.js
@@ -33,7 +33,7 @@ class ButtonBox extends St.Widget {
         this._natHPadding = themeNode.get_length('-natural-hpadding');
     }
 
-    vfunc_get_preferred_width(forHeight) {
+    vfunc_get_preferred_width(_forHeight) {
         let child = this.get_first_child();
         let minimumSize, naturalSize;
 
@@ -48,7 +48,7 @@ class ButtonBox extends St.Widget {
         return [minimumSize, naturalSize];
     }
 
-    vfunc_get_preferred_height(forWidth) {
+    vfunc_get_preferred_height(_forWidth) {
         let child = this.get_first_child();
 
         if (child)
diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js
index 8c8839c54..e1dee7884 100644
--- a/js/ui/popupMenu.js
+++ b/js/ui/popupMenu.js
@@ -571,7 +571,7 @@ var PopupMenuBase = class {
                     menuItem.actor.grab_key_focus();
             }
         });
-        menuItem._activateId = menuItem.connect_after('activate', (menuItem, event) => {
+        menuItem._activateId = menuItem.connect_after('activate', (menuItem, _event) => {
             this.emit('activate', menuItem);
             this.itemActivated(BoxPointer.PopupAnimation.FULL);
         });
diff --git a/js/ui/remoteSearch.js b/js/ui/remoteSearch.js
index 433cf291e..b9d20325c 100644
--- a/js/ui/remoteSearch.js
+++ b/js/ui/remoteSearch.js
@@ -310,7 +310,7 @@ var RemoteSearchProvider = class {
         this.proxy.ActivateResultRemote(id);
     }
 
-    launchSearch(terms) {
+    launchSearch(_terms) {
         // the provider is not compatible with the new version of the interface, launch
         // the app itself but warn so we can catch the error in logs
         log(`Search provider ${this.appInfo.get_id()} does not implement LaunchSearch`);
diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js
index 9e07b5901..cf8e9544c 100644
--- a/js/ui/screenShield.js
+++ b/js/ui/screenShield.js
@@ -773,7 +773,7 @@ var ScreenShield = class {
         return true;
     }
 
-    _onDragEnd(action, actor, eventX, eventY, modifiers) {
+    _onDragEnd(_action, _actor, _eventX, _eventY, _modifiers) {
         if (this._lockScreenState != MessageTray.State.HIDING)
             return;
         if (this._lockScreenGroup.y < -(ARROW_DRAG_THRESHOLD * global.stage.height)) {
diff --git a/js/ui/search.js b/js/ui/search.js
index 808036546..ab6ba9dfa 100644
--- a/js/ui/search.js
+++ b/js/ui/search.js
@@ -192,7 +192,7 @@ var SearchResultsBase = class {
         Main.overview.toggle();
     }
 
-    _setMoreCount(count) {
+    _setMoreCount(_count) {
     }
 
     _ensureResultActors(results, callback) {
diff --git a/js/ui/shellMountOperation.js b/js/ui/shellMountOperation.js
index 99a3bbb69..ef2ad3ec5 100644
--- a/js/ui/shellMountOperation.js
+++ b/js/ui/shellMountOperation.js
@@ -154,7 +154,7 @@ var ShellMountOperation = class {
         this._dialog.open();
     }
 
-    close(op) {
+    close(_op) {
         this._closeExistingDialog();
         this._processesDialog = null;
 
@@ -753,7 +753,7 @@ var GnomeShellMountOpHandler = class {
      * Closes a dialog previously opened by AskPassword, AskQuestion or ShowProcesses.
      * If no dialog is open, does nothing.
      */
-    Close(params, invocation) {
+    Close(_params, _invocation) {
         this._clearCurrentRequest(Gio.MountOperationResult.UNHANDLED, {});
         this._closeDialog();
     }
diff --git a/js/ui/slider.js b/js/ui/slider.js
index 51cb205c6..1b680f880 100644
--- a/js/ui/slider.js
+++ b/js/ui/slider.js
@@ -182,7 +182,7 @@ var Slider = class extends BarLevel.BarLevel {
         return Clutter.EVENT_PROPAGATE;
     }
 
-    _moveHandle(absX, absY) {
+    _moveHandle(absX, _absY) {
         let relX, sliderX;
         [sliderX] = this.actor.get_transformed_position();
         relX = absX - sliderX;
diff --git a/js/ui/status/keyboard.js b/js/ui/status/keyboard.js
index 187b59ef7..5a4757341 100644
--- a/js/ui/status/keyboard.js
+++ b/js/ui/status/keyboard.js
@@ -657,7 +657,7 @@ var InputSourceManager = class {
         return false;
     }
 
-    _ibusSetContentType(im, purpose, hints) {
+    _ibusSetContentType(im, purpose, _hints) {
         if (purpose == IBus.InputPurpose.PASSWORD) {
             if (Object.keys(this._inputSources).length == Object.keys(this._ibusSources).length)
                 return;
diff --git a/js/ui/status/network.js b/js/ui/status/network.js
index ed83b2aab..276c9c208 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -149,7 +149,7 @@ var NMConnectionItem = class {
         this._sync();
     }
 
-    _connectionStateChanged(ac, newstate, reason) {
+    _connectionStateChanged(_ac, _newstate, _reason) {
         this._sync();
     }
 
@@ -222,7 +222,7 @@ var NMConnectionSection = class NMConnectionSection {
         return _("Connect");
     }
 
-    _connectionValid(connection) {
+    _connectionValid(_connection) {
         return true;
     }
 
@@ -377,7 +377,7 @@ var NMConnectionDevice = class NMConnectionDevice extends NMConnectionSection {
         this._client.activate_connection_async(connection, this._device, null, null, null);
     }
 
-    deactivateConnection(activeConnection) {
+    deactivateConnection(_activeConnection) {
         this._device.disconnect(null);
     }
 
@@ -1708,7 +1708,7 @@ var NMApplet = class extends PanelMenu.SystemIndicator {
         this._source.notify(this._notification);
     }
 
-    _onActivationFailed(device, reason) {
+    _onActivationFailed(_device, _reason) {
         // XXX: nm-applet has no special text depending on reason
         // but I'm not sure of this generic message
         this._notify('network-error-symbolic',
diff --git a/js/ui/switcherPopup.js b/js/ui/switcherPopup.js
index 547886e28..60e92eab9 100644
--- a/js/ui/switcherPopup.js
+++ b/js/ui/switcherPopup.js
@@ -85,7 +85,7 @@ var SwitcherPopup = GObject.registerClass({
         this._switcherList.allocate(childBox, flags);
     }
 
-    _initialSelection(backward, binding) {
+    _initialSelection(backward, _binding) {
         if (backward)
             this._select(this._items.length - 1);
         else if (this._items.length == 1)
@@ -161,7 +161,7 @@ var SwitcherPopup = GObject.registerClass({
         return mod(this._selectedIndex - 1, this._items.length);
     }
 
-    _keyPressHandler(keysym, action) {
+    _keyPressHandler(_keysym, _action) {
         throw new GObject.NotImplementedError(`_keyPressHandler in ${this.constructor.name}`);
     }
 
@@ -296,7 +296,7 @@ var SwitcherPopup = GObject.registerClass({
         }
     }
 
-    _finish(timestamp) {
+    _finish(_timestamp) {
         this.fadeAndDestroy();
     }
 
@@ -531,7 +531,7 @@ var SwitcherList = GObject.registerClass({
         return themeNode.adjust_preferred_width(maxChildMin, minListWidth);
     }
 
-    vfunc_get_preferred_height(forWidth) {
+    vfunc_get_preferred_height(_forWidth) {
         let maxChildMin = 0;
         let maxChildNat = 0;
 
diff --git a/js/ui/viewSelector.js b/js/ui/viewSelector.js
index 864e485df..acbf5a0ad 100644
--- a/js/ui/viewSelector.js
+++ b/js/ui/viewSelector.js
@@ -74,7 +74,7 @@ var ShowOverviewAction = GObject.registerClass({
         });
     }
 
-    vfunc_gesture_prepare(actor) {
+    vfunc_gesture_prepare(_actor) {
         return Main.actionMode == Shell.ActionMode.NORMAL &&
                this.get_n_current_points() == this.get_n_touch_points();
     }
@@ -108,12 +108,12 @@ var ShowOverviewAction = GObject.registerClass({
                                     height: maxY - minY });
     }
 
-    vfunc_gesture_begin(actor) {
+    vfunc_gesture_begin(_actor) {
         this._initialRect = this._getBoundingRect(false);
         return true;
     }
 
-    vfunc_gesture_end(actor) {
+    vfunc_gesture_end(_actor) {
         let rect = this._getBoundingRect(true);
         let oldArea = this._initialRect.width * this._initialRect.height;
         let newArea = rect.width * rect.height;
diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js
index 199b3504e..0d6429a17 100644
--- a/js/ui/windowManager.js
+++ b/js/ui/windowManager.js
@@ -297,14 +297,14 @@ var WorkspaceTracker = class {
         GLib.Source.set_name_by_id(id, '[gnome-shell] this._queueCheckWorkspaces');
     }
 
-    _windowLeftMonitor(metaDisplay, monitorIndex, metaWin) {
+    _windowLeftMonitor(metaDisplay, monitorIndex, _metaWin) {
         // If the window left the primary monitor, that
         // might make that workspace empty
         if (monitorIndex == Main.layoutManager.primaryIndex)
             this._queueCheckWorkspaces();
     }
 
-    _windowEnteredMonitor(metaDisplay, monitorIndex, metaWin) {
+    _windowEnteredMonitor(metaDisplay, monitorIndex, _metaWin) {
         // If the window entered the primary monitor, that
         // might make that workspace non-empty
         if (monitorIndex == Main.layoutManager.primaryIndex)
@@ -559,14 +559,14 @@ var WorkspaceSwitchAction = GObject.registerClass({
         return (this._allowedModes & Main.actionMode);
     }
 
-    vfunc_gesture_progress(actor) {
+    vfunc_gesture_progress(_actor) {
         let [x, y] = this.get_motion_coords(0);
         let [xPress, yPress] = this.get_press_coords(0);
         this.emit('motion', x - xPress, y - yPress);
         return true;
     }
 
-    vfunc_gesture_cancel(actor) {
+    vfunc_gesture_cancel(_actor) {
         if (!this._swept)
             this.emit('cancel');
     }
@@ -608,7 +608,7 @@ var AppSwitchAction = GObject.registerClass({
         });
     }
 
-    vfunc_gesture_prepare(actor) {
+    vfunc_gesture_prepare(_actor) {
         if (Main.actionMode != Shell.ActionMode.NORMAL) {
             this.cancel();
             return false;
@@ -617,7 +617,7 @@ var AppSwitchAction = GObject.registerClass({
         return this.get_n_current_points() <= 4;
     }
 
-    vfunc_gesture_begin(actor) {
+    vfunc_gesture_begin(_actor) {
         // in milliseconds
         const LONG_PRESS_TIMEOUT = 250;
 
@@ -641,7 +641,7 @@ var AppSwitchAction = GObject.registerClass({
         return this.get_n_current_points() <= 4;
     }
 
-    vfunc_gesture_progress(actor) {
+    vfunc_gesture_progress(_actor) {
         const MOTION_THRESHOLD = 30;
 
         if (this.get_n_current_points() == 3) {
@@ -1430,7 +1430,7 @@ var WindowManager = class {
         }
     }
 
-    _sizeChangeWindow(shellwm, actor, whichChange, oldFrameRect, oldBufferRect) {
+    _sizeChangeWindow(shellwm, actor, whichChange, oldFrameRect, _oldBufferRect) {
         let types = [Meta.WindowType.NORMAL];
         if (!this._shouldAnimateActor(actor, types)) {
             shellwm.completed_size_change(actor);
@@ -1443,7 +1443,7 @@ var WindowManager = class {
             shellwm.completed_size_change(actor);
     }
 
-    _prepareAnimationInfo(shellwm, actor, oldFrameRect, change) {
+    _prepareAnimationInfo(shellwm, actor, oldFrameRect, _change) {
         // Position a clone of the window on top of the old position,
         // while actor updates are frozen.
         let actorContent = Shell.util_get_content_for_window_actor(actor, oldFrameRect);
diff --git a/js/ui/workspace.js b/js/ui/workspace.js
index 781dda555..b58711d5c 100644
--- a/js/ui/workspace.js
+++ b/js/ui/workspace.js
@@ -72,11 +72,11 @@ class WindowCloneLayout extends Clutter.LayoutManager {
         return box;
     }
 
-    vfunc_get_preferred_height(container, forWidth) {
+    vfunc_get_preferred_height(_container, _forWidth) {
         return [this._boundingBox.height, this._boundingBox.height];
     }
 
-    vfunc_get_preferred_width(container, forHeight) {
+    vfunc_get_preferred_width(_container, _forHeight) {
         return [this._boundingBox.width, this._boundingBox.width];
     }
 
@@ -403,7 +403,7 @@ var WindowClone = GObject.registerClass({
         return true;
     }
 
-    _onDragBegin(draggable, time) {
+    _onDragBegin(_draggable, _time) {
         this._dragSlot = this._slot;
         [this.dragOrigX, this.dragOrigY] = this.get_position();
         this.dragOrigScale = this.scale_x;
@@ -419,11 +419,11 @@ var WindowClone = GObject.registerClass({
         this._workspace.acceptDrop(source, actor, x, y, time);
     }
 
-    _onDragCancelled(draggable, time) {
+    _onDragCancelled(_draggable, _time) {
         this.emit('drag-cancelled');
     }
 
-    _onDragEnd(draggable, time, snapback) {
+    _onDragEnd(_draggable, _time, _snapback) {
         this.inDrag = false;
 
         // We may not have a parent if DnD completed successfully, in
@@ -845,7 +845,7 @@ var LayoutStrategy = class {
     // row.width, row.height, row.fullWidth, row.fullHeight, and
     // (optionally) for each row in @layout.rows. This method is
     // intended to be called by subclasses.
-    _computeRowSizes(layout) {
+    _computeRowSizes(_layout) {
         throw new GObject.NotImplementedError(`_computeRowSizes in ${this.constructor.name}`);
     }
 
@@ -858,7 +858,7 @@ var LayoutStrategy = class {
     //  * gridWidth - The total width used by the grid, unscaled, unspaced.
     //  * gridHeight - The totial height used by the grid, unscaled, unspaced.
     //  * rows - A list of rows, which should be instantiated by _newRow.
-    computeLayout(windows, layout) {
+    computeLayout(_windows, _layout) {
         throw new GObject.NotImplementedError(`computeLayout in ${this.constructor.name}`);
     }
 
@@ -1979,7 +1979,7 @@ var Workspace = class {
     }
 
     // Draggable target interface
-    handleDragOver(source, actor, x, y, time) {
+    handleDragOver(source, _actor, _x, _y, _time) {
         if (source.realWindow && !this._isMyWindow(source.realWindow))
             return DND.DragMotionResult.MOVE_DROP;
         if (source.shellWorkspaceLaunch)
diff --git a/js/ui/workspaceSwitcherPopup.js b/js/ui/workspaceSwitcherPopup.js
index 3149568d8..ae4b31b82 100644
--- a/js/ui/workspaceSwitcherPopup.js
+++ b/js/ui/workspaceSwitcherPopup.js
@@ -26,7 +26,7 @@ class WorkspaceSwitcherPopupList extends St.Widget {
         });
     }
 
-    _getPreferredSizeForOrientation(forSize) {
+    _getPreferredSizeForOrientation(_forSize) {
         let workArea = Main.layoutManager.getWorkAreaForMonitor(Main.layoutManager.primaryIndex);
         let themeNode = this.get_theme_node();
 
diff --git a/js/ui/workspaceThumbnail.js b/js/ui/workspaceThumbnail.js
index 0c43d4d19..2d6db9ac3 100644
--- a/js/ui/workspaceThumbnail.js
+++ b/js/ui/workspaceThumbnail.js
@@ -200,16 +200,16 @@ var WindowClone = class {
         return Clutter.EVENT_STOP;
     }
 
-    _onDragBegin(draggable, time) {
+    _onDragBegin(_draggable, _time) {
         this.inDrag = true;
         this.emit('drag-begin');
     }
 
-    _onDragCancelled(draggable, time) {
+    _onDragCancelled(_draggable, _time) {
         this.emit('drag-cancelled');
     }
 
-    _onDragEnd(draggable, time, snapback) {
+    _onDragEnd(_draggable, _time, _snapback) {
         this.inDrag = false;
 
         // We may not have a parent if DnD completed successfully, in
@@ -1123,7 +1123,7 @@ class ThumbnailsBox extends St.Widget {
         this._stateUpdateQueued = true;
     }
 
-    vfunc_get_preferred_height(forWidth) {
+    vfunc_get_preferred_height(_forWidth) {
         // Note that for getPreferredWidth/Height we cheat a bit and skip propagating
         // the size request to our children because we know how big they are and know
         // that the actors aren't depending on the virtual functions being called.
@@ -1311,7 +1311,7 @@ class ThumbnailsBox extends St.Widget {
         this._indicator.allocate(childBox, flags);
     }
 
-    _activeWorkspaceChanged(wm, from, to, direction) {
+    _activeWorkspaceChanged(_wm, _from, _to, _direction) {
         let thumbnail;
         let workspaceManager = global.workspace_manager;
         let activeWorkspace = workspaceManager.get_active_workspace();
diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js
index e31cd534c..ca3e15f77 100644
--- a/js/ui/workspacesView.js
+++ b/js/ui/workspacesView.js
@@ -286,7 +286,7 @@ var WorkspacesView = class extends WorkspacesViewBase {
             this._syncActualGeometry();
     }
 
-    _activeWorkspaceChanged(wm, from, to, direction) {
+    _activeWorkspaceChanged(_wm, _from, _to, _direction) {
         if (this._scrolling)
             return;
 



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