Skip to content

Commit cffead0

Browse files
committed
Remove unused viewController argument
1 parent 5dc887f commit cffead0

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

WooCommerce/Classes/Authentication/Navigation Exceptions/JetpackErrorViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ struct JetpackErrorViewModel: ULErrorViewModel {
6666
analytics.track(.loginWhatIsJetpackHelpScreenViewed)
6767
}
6868

69-
func viewDidLoad(in viewController: UIViewController?) {
69+
func viewDidLoad() {
7070
analytics.track(.loginJetpackRequiredScreenViewed)
7171
}
7272
}

WooCommerce/Classes/Authentication/Navigation Exceptions/NoSecureConnectionErrorViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ struct NoSecureConnectionErrorViewModel: ULErrorViewModel {
3232
// NO-OP
3333
}
3434

35-
func viewDidLoad(in viewController: UIViewController?) {
35+
func viewDidLoad() {
3636
// NO-OP
3737
}
3838

WooCommerce/Classes/Authentication/Navigation Exceptions/NotWPAccountViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ struct NotWPAccountViewModel: ULErrorViewModel {
3838
viewController?.present(fancyAlert, animated: true)
3939
}
4040

41-
func viewDidLoad(in viewController: UIViewController?) {
41+
func viewDidLoad() {
4242
// NO-OP
4343
}
4444
}

WooCommerce/Classes/Authentication/Navigation Exceptions/NotWPErrorViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ struct NotWPErrorViewModel: ULErrorViewModel {
3535
// NO-OP
3636
}
3737

38-
func viewDidLoad(in viewController: UIViewController?) {
38+
func viewDidLoad() {
3939
// NO-OP
4040
}
4141
}

WooCommerce/Classes/Authentication/Navigation Exceptions/ULErrorViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ final class ULErrorViewController: UIViewController {
5050

5151
setUnifiedMargins(forWidth: view.frame.width)
5252

53-
viewModel.viewDidLoad(in: self)
53+
viewModel.viewDidLoad()
5454
}
5555

5656
override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {

WooCommerce/Classes/Authentication/Navigation Exceptions/ULErrorViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ protocol ULErrorViewModel {
2121
/// Provides a title for a secondary action button
2222
var secondaryButtonTitle: String { get }
2323

24-
func viewDidLoad(in viewController: UIViewController?)
24+
func viewDidLoad()
2525

2626
/// Executes action associated to a tap in the view controller primary button
2727
/// - Parameter viewController: usually the view controller sending the tap

0 commit comments

Comments
 (0)