From a7d618915c0a5f07e8baf9c2168c7ce967cba317 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Mon, 17 Dec 2018 18:58:57 +0100 Subject: [PATCH] calendar: Remove ability to hide events The functionality is no longer exposed, so remove it altogether. https://gitlab.gnome.org/GNOME/gnome-shell/issues/262 --- js/ui/calendar.js | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/js/ui/calendar.js b/js/ui/calendar.js index 7ff98dfcf..1927e8cdb 100644 --- a/js/ui/calendar.js +++ b/js/ui/calendar.js @@ -117,9 +117,6 @@ var EmptyEventSource = new Lang.Class({ destroy() { }, - ignoreEvent(event) { - }, - requestRange(begin, end) { }, @@ -185,14 +182,6 @@ var DBusEventSource = new Lang.Class({ this.isLoading = false; this.isDummy = false; - this._ignoredEvents = new Map(); - - let savedState = global.get_persistent_state('as', 'ignored_events'); - if (savedState) - savedState.deep_unpack().forEach(eventId => { - this._ignoredEvents.set(eventId, true); - }); - this._initialized = false; this._dbusProxy = new CalendarServer(); this._dbusProxy.init_async(GLib.PRIORITY_DEFAULT, null, (object, result) => { @@ -305,16 +294,6 @@ var DBusEventSource = new Lang.Class({ } }, - ignoreEvent(event) { - if (this._ignoredEvents.get(event.id)) - return; - - this._ignoredEvents.set(event.id, true); - let savedState = new GLib.Variant('as', [...this._ignoredEvents.keys()]); - global.set_persistent_state('ignored_events', savedState); - this.emit('changed'); - }, - requestRange(begin, end) { if (!(_datesEqual(begin, this._lastRequestBegin) && _datesEqual(end, this._lastRequestEnd))) { this.isLoading = true; @@ -331,9 +310,6 @@ var DBusEventSource = new Lang.Class({ for(let n = 0; n < this._events.length; n++) { let event = this._events[n]; - if (this._ignoredEvents.has(event.id)) - continue; - if (_dateIntervalsOverlap (event.date, event.end, begin, end)) { result.push(event); }