messageTray: Drop Source.destroyNonResidentNotifications()

It was only used in a specific case for FDO notifications, which was
removed in a previous commit.
This commit is contained in:
Julian Sparber 2024-03-06 18:12:54 +01:00
parent 43cb736cbd
commit 17f76bb7f7

View file

@ -597,13 +597,6 @@ export const Source = GObject.registerClass({
// To be overridden by subclasses
open() {
}
destroyNonResidentNotifications() {
for (let i = this.notifications.length - 1; i >= 0; i--) {
if (!this.notifications[i].resident)
this.notifications[i].destroy();
}
}
});
SignalTracker.registerDestroyableType(Source);