[gnome-shell/wip/fmuellner/unclosable-events: 20/21] calendar: Remove ability to hide events
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/fmuellner/unclosable-events: 20/21] calendar: Remove ability to hide events
- Date: Tue, 22 Jan 2019 21:36:15 +0000 (UTC)
commit a7d618915c0a5f07e8baf9c2168c7ce967cba317
Author: Florian Müllner <fmuellner gnome org>
Date: Mon Dec 17 18:58:57 2018 +0100
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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]