[cleanup]: removed unused code which was replaced by UI input text field in sources tab

This commit is contained in:
Magesh K
2024-12-13 13:35:39 +05:30
parent 1d030a9550
commit 7f60048b0c
2 changed files with 2 additions and 20 deletions

View File

@@ -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.