messageTray: Remove _createPolicy() hook
It is now unused (at least in gnome-shell itself). Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3170>
This commit is contained in:
parent
3fc7ed4088
commit
bb918fff3c
@ -633,7 +633,7 @@ export const Source = GObject.registerClass({
|
|||||||
this.notifications = [];
|
this.notifications = [];
|
||||||
|
|
||||||
if (!this._policy)
|
if (!this._policy)
|
||||||
this._policy = this._createPolicy();
|
this._policy = new NotificationGenericPolicy();
|
||||||
}
|
}
|
||||||
|
|
||||||
get policy() {
|
get policy() {
|
||||||
@ -662,10 +662,6 @@ export const Source = GObject.registerClass({
|
|||||||
this.notify('count');
|
this.notify('count');
|
||||||
}
|
}
|
||||||
|
|
||||||
_createPolicy() {
|
|
||||||
return new NotificationGenericPolicy();
|
|
||||||
}
|
|
||||||
|
|
||||||
get narrowestPrivacyScope() {
|
get narrowestPrivacyScope() {
|
||||||
return this.notifications.every(n => n.privacyScope === PrivacyScope.SYSTEM)
|
return this.notifications.every(n => n.privacyScope === PrivacyScope.SYSTEM)
|
||||||
? PrivacyScope.SYSTEM
|
? PrivacyScope.SYSTEM
|
||||||
|
Loading…
x
Reference in New Issue
Block a user