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
This commit is contained in:
@ -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) {
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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,
|
||||
|
Reference in New Issue
Block a user