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

@ -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);