Skip to content

Commit

Permalink
Cleanup Watch even more by removing unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
robbiet480 committed Oct 1, 2018
1 parent 0187e95 commit c6c6f41
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions WatchAppExtension/ComplicationController.swift
Expand Up @@ -15,15 +15,7 @@ class ComplicationController: NSObject, CLKComplicationDataSource {

func getSupportedTimeTravelDirections(for complication: CLKComplication, withHandler
handler: @escaping (CLKComplicationTimeTravelDirections) -> Void) {
handler([.backward, .forward])
}

func getTimelineStartDate(for complication: CLKComplication, withHandler handler: @escaping (Date?) -> Void) {
handler(nil)
}

func getTimelineEndDate(for complication: CLKComplication, withHandler handler: @escaping (Date?) -> Void) {
handler(nil)
handler([])
}

func getPrivacyBehavior(for complication: CLKComplication,
Expand Down Expand Up @@ -57,18 +49,6 @@ class ComplicationController: NSObject, CLKComplicationDataSource {
}
}

func getTimelineEntries(for complication: CLKComplication, before date: Date, limit: Int,
withHandler handler: @escaping ([CLKComplicationTimelineEntry]?) -> Void) {
// Call the handler with the timeline entries prior to the given date
handler(nil)
}

func getTimelineEntries(for complication: CLKComplication, after date: Date, limit: Int,
withHandler handler: @escaping ([CLKComplicationTimelineEntry]?) -> Void) {
// Call the handler with the timeline entries after to the given date
handler(nil)
}

// MARK: - Placeholder Templates

func getLocalizableSampleTemplate(for complication: CLKComplication,
Expand Down

0 comments on commit c6c6f41

Please sign in to comment.