Browse Source

Unused.

pull/113/head
Abhishek 3 years ago
parent
commit
7bf7f49aba
  1. 26
      Clocker/Panel/Data Layer/TimezoneDataOperations.swift

26
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

Loading…
Cancel
Save