From bb918fff3c9b5ad933a6a05813b93b80499bacef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 7 Feb 2024 15:32:30 +0100 Subject: [PATCH] messageTray: Remove _createPolicy() hook It is now unused (at least in gnome-shell itself). Part-of: --- js/ui/messageTray.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index abdc0982a..163d3eab5 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -633,7 +633,7 @@ export const Source = GObject.registerClass({ this.notifications = []; if (!this._policy) - this._policy = this._createPolicy(); + this._policy = new NotificationGenericPolicy(); } get policy() { @@ -662,10 +662,6 @@ export const Source = GObject.registerClass({ this.notify('count'); } - _createPolicy() { - return new NotificationGenericPolicy(); - } - get narrowestPrivacyScope() { return this.notifications.every(n => n.privacyScope === PrivacyScope.SYSTEM) ? PrivacyScope.SYSTEM