diff --git a/js/ui/calendar.js b/js/ui/calendar.js index e048cd086..7eb451916 100644 --- a/js/ui/calendar.js +++ b/js/ui/calendar.js @@ -883,10 +883,6 @@ class NotificationSection extends MessageList.MessageListSection { }); super.vfunc_map(); } - - _shouldShow() { - return !this.empty && isToday(this._date); - } }); var Placeholder = GObject.registerClass( diff --git a/js/ui/mpris.js b/js/ui/mpris.js index 23fca91b1..3650c577a 100644 --- a/js/ui/mpris.js +++ b/js/ui/mpris.js @@ -2,7 +2,6 @@ const { Gio, GObject, Shell, St } = imports.gi; const Signals = imports.signals; -const Calendar = imports.ui.calendar; const Main = imports.ui.main; const MessageList = imports.ui.messageList; @@ -252,10 +251,6 @@ class MediaSection extends MessageList.MessageListSection { this._onProxyReady.bind(this)); } - _shouldShow() { - return !this.empty && Calendar.isToday(this._date); - } - get allowed() { return !Main.sessionMode.isGreeter; }