mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
[cleanup]: removed unused code which was replaced by UI input text field in sources tab
This commit is contained in:
@@ -348,26 +348,6 @@ private extension SourcesViewController
|
||||
{
|
||||
func handleAddSourceDeepLink()
|
||||
{
|
||||
// let alertController = UIAlertController(title: NSLocalizedString("Add Source", comment: ""), message: nil, preferredStyle: .alert)
|
||||
// alertController.addTextField { (textField) in
|
||||
// textField.placeholder = "https://apps.sidestore.io"
|
||||
// textField.textContentType = .URL
|
||||
// }
|
||||
// alertController.addAction(.cancel)
|
||||
// alertController.addAction(UIAlertAction(title: NSLocalizedString("Add", comment: ""), style: .default) { (action) in
|
||||
// guard let text = alertController.textFields![0].text else { return }
|
||||
// guard var sourceURL = URL(string: text) else { return }
|
||||
// if sourceURL.scheme == nil {
|
||||
// guard let httpsSourceURL = URL(string: "https://" + text) else { return }
|
||||
// sourceURL = httpsSourceURL
|
||||
// }
|
||||
//
|
||||
// self.navigationItem.leftBarButtonItem?.isIndicatingActivity = true
|
||||
//
|
||||
// self.addSource(url: sourceURL) { _ in
|
||||
// self.navigationItem.leftBarButtonItem?.isIndicatingActivity = false
|
||||
// }
|
||||
// })
|
||||
guard let url = self.deepLinkSourceURL, self.view.window != nil else { return }
|
||||
|
||||
// Only handle deep link once.
|
||||
|
||||
Reference in New Issue
Block a user