@@ -673,39 +673,6 @@ private extension AuthenticationManager {
673673 }
674674 }
675675
676- /// The error screen to be displayed when the user enters a site
677- /// without Jetpack in the site discovery flow.
678- /// More about this flow: pe5sF9-mz-p2.
679- ///
680- func jetpackErrorUI( for siteURL: String , with matcher: ULAccountMatcher , in navigationController: UINavigationController ) -> UIViewController {
681- let viewModel = JetpackErrorViewModel ( siteURL: siteURL,
682- siteCredentials: nil ,
683- onJetpackSetupCompletion: { [ weak self] authorizedEmailAddress in
684- guard let self = self else { return }
685-
686- // Tries re-syncing to get an updated store list
687- ServiceLocator . stores. synchronizeEntities { [ weak self] in
688- guard let self = self else { return }
689- matcher. refreshStoredSites ( )
690- guard let matchedSite = matcher. matchedSite ( originalURL: siteURL) else {
691- DDLogWarn ( " ⚠️ Could not find \( siteURL) connected to the account " )
692- return
693- }
694- // checks if the site has woo
695- if matchedSite. isWooCommerceActive == false {
696- let noWooUI = self . noWooUI ( for: matchedSite,
697- with: matcher,
698- navigationController: navigationController,
699- onStorePickerDismiss: { } )
700- navigationController. show ( noWooUI, sender: nil )
701- } else {
702- self . startStorePicker ( with: matchedSite. siteID, in: navigationController, onDismiss: { } )
703- }
704- }
705- } )
706- return ULErrorViewController ( viewModel: viewModel)
707- }
708-
709676 /// The error screen to be displayed when the user tries to enter a site
710677 /// whose Jetpack is not associated with their account.
711678 /// - Parameters:
0 commit comments