messageTray: Remove _lastNotificationRemoved()

No Source subclass used it to do anything special, and with sources
no longer having any UI representation on their own, doing anything
else isn't useful either, so just kill off that hook.

https://bugzilla.gnome.org/show_bug.cgi?id=744850
This commit is contained in:
Florian Müllner 2015-02-15 20:19:03 +01:00
parent b81be42d08
commit 9c9da8a176
2 changed files with 1 additions and 10 deletions

View File

@ -1304,7 +1304,7 @@ const Source = new Lang.Class({
this.notifications.splice(index, 1);
if (this.notifications.length == 0)
this._lastNotificationRemoved();
this.destroy();
this.countUpdated();
},
@ -1357,11 +1357,6 @@ const Source = new Lang.Class({
this.notifications[i].destroy();
this.countUpdated();
},
// Default implementation is to destroy this source, but subclasses can override
_lastNotificationRemoved: function() {
this.destroy();
}
});
Signals.addSignalMethods(Source.prototype);

View File

@ -551,10 +551,6 @@ const FdoNotificationDaemonSource = new Lang.Class({
this.destroyNonResidentNotifications();
},
_lastNotificationRemoved: function() {
this.destroy();
},
openApp: function() {
if (this.app == null)
return;