Skip to content

Commit 7638f86

Browse files
committed
Remove code for parsing URL path
1 parent 98845b8 commit 7638f86

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

Loop/AppDelegate.swift

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -91,34 +91,4 @@ final class AppDelegate: UIResponder, UIApplicationDelegate, WindowProvider {
9191
func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask {
9292
return loopAppManager.supportedInterfaceOrientations
9393
}
94-
95-
// MARK: - UIApplicationDelegate - handle external URLs
96-
97-
func application(_ application: UIApplication,
98-
open url: URL,
99-
options: [UIApplication.OpenURLOptionsKey : Any] = [:] ) -> Bool {
100-
101-
// Process the URL.
102-
guard let components = NSURLComponents(url: url, resolvingAgainstBaseURL: true), let linkTarget = components.host else {
103-
// No sub-path specified
104-
return true
105-
}
106-
107-
// Below examples would call something like the function presentCarbEntryScreen defined in StatusTableViewController; not sure if that type of code has to all be copied here, or if those various functions (e.g. carb entry, bolus view, settings) should be put elsewhere, or could be repurposed from existing files.
108-
109-
switch linkTarget.lowercased() {
110-
case "carbs" :
111-
// open carb entry view controller
112-
return true
113-
case "bolus" :
114-
// open bolus view controller
115-
return true
116-
case "settings" :
117-
// open settings view
118-
return true
119-
default :
120-
return true
121-
}
122-
}
123-
12494
}

0 commit comments

Comments
 (0)