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:
Florian Müllner
2019-01-31 15:08:10 +01:00
parent 79cf3a6dd0
commit 2f97a1a55d
44 changed files with 110 additions and 110 deletions

View File

@ -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,