@@ -109,15 +109,6 @@ final class StorePickerViewController: UIViewController {
109109 }
110110 }
111111
112- /// New To Woo button
113- ///
114- @IBOutlet var newToWooButton : UIButton ! {
115- didSet {
116- newToWooButton. applyLinkButtonStyle ( )
117- newToWooButton. setTitle ( Localization . newToWooCommerce, for: . normal)
118- }
119- }
120-
121112 /// Main tableView
122113 ///
123114 @IBOutlet private var tableView : UITableView ! {
@@ -426,10 +417,8 @@ private extension StorePickerViewController {
426417 case . empty:
427418 updateActionButtonAndTableState ( animating: false , enabled: false )
428419 addStoreButton. isHidden = false
429- newToWooButton. isHidden = true
430420 case . available( let sites) :
431421 addStoreButton. isHidden = true
432- newToWooButton. isHidden = true
433422 if sites. allSatisfy ( { $0. isWooCommerceActive == false } ) {
434423 updateActionButtonAndTableState ( animating: false , enabled: false )
435424 }
@@ -545,7 +534,6 @@ private extension StorePickerViewController {
545534 hideActionButton ( )
546535 displayFancyWCRequirementAlert ( siteName: siteName)
547536 addStoreButton. isHidden = false
548- newToWooButton. isHidden = true
549537 }
550538
551539 /// Update the UI when the user has a valid login
@@ -634,17 +622,6 @@ private extension StorePickerViewController {
634622 }
635623 }
636624
637- /// Displays a web view with introduction to WooCommerce
638- ///
639- @IBAction private func newToWooWasPressed( ) {
640- ServiceLocator . analytics. track ( event: . SitePicker. newToWooTapped ( ) )
641- guard let url = URL ( string: StorePickerConstants . newToWooCommerceURL) else {
642- return assertionFailure ( " Cannot generate URL. " )
643- }
644-
645- WebviewHelper . launch ( url, with: self )
646- }
647-
648625 /// Proceeds with the Logout Flow.
649626 ///
650627 @IBAction func secondaryActionWasPressed( ) {
@@ -826,8 +803,6 @@ private extension StorePickerViewController {
826803 static let continueButton = NSLocalizedString ( " Continue " , comment: " Button on the Store Picker screen to select a store " )
827804 static let tryAnotherAccount = NSLocalizedString ( " Log In With Another Account " ,
828805 comment: " Button to trigger connection to another account in store picker " )
829- static let newToWooCommerce = NSLocalizedString ( " New to WooCommerce? " ,
830- comment: " Title of button on the site picker screen for users who are new to WooCommerce. " )
831806 static let createStore = NSLocalizedString ( " Create a new store " ,
832807 comment: " Button to create a new store from the store picker " )
833808 static let connectExistingStore = NSLocalizedString ( " Connect an existing store " ,
@@ -843,7 +818,6 @@ private extension StorePickerViewController {
843818//
844819private enum StorePickerConstants {
845820 static let estimatedRowHeight = CGFloat ( 50 )
846- static let newToWooCommerceURL = " https://woocommerce.com/woocommerce-features "
847821}
848822
849823
0 commit comments