diff --git a/Clocker/Panel/Data Layer/TimezoneDataOperations.swift b/Clocker/Panel/Data Layer/TimezoneDataOperations.swift index 9be80f8..0db1170 100644 --- a/Clocker/Panel/Data Layer/TimezoneDataOperations.swift +++ b/Clocker/Panel/Data Layer/TimezoneDataOperations.swift @@ -77,32 +77,6 @@ extension TimezoneDataOperations { return "Heads up! DST transition will occur in \(numberOfDays) \(suffix)." } - private func checkForUpcomingEvents() -> (String, String)? { - if DataStore.shared().shouldDisplay(.showMeetingInMenubar) { - let filteredDates = EventCenter.sharedCenter().eventsForDate - let autoupdatingCal = EventCenter.sharedCenter().autoupdatingCalendar - guard let events = filteredDates[autoupdatingCal.startOfDay(for: Date())] else { - return nil - } - - for event in events { - if event.event.startDate.timeIntervalSinceNow > 0, !event.isAllDay { - let timeForEventToStart = event.event.startDate.timeIntervalSinceNow / 60 - - if timeForEventToStart > 30 { - Logger.info("Our next event: \(event.event.title ?? "Error") starts in \(timeForEventToStart) mins") - - continue - } - - return EventCenter.sharedCenter().separateFormat(event: event.event) - } - } - } - - return nil - } - func compactMenuTitle() -> String { var subtitle = CLEmptyString