Skip to content

Commit

Permalink
[MBL-2063] Delete PledgeViewController & PledgeViewControllerTests (#…
Browse files Browse the repository at this point in the history
…2272)

* remove PledgeViewController and PledgeViewControllerTests

* remove PledgeViewModel and Tests

* remove old delegate
  • Loading branch information
scottkicks authored Feb 4, 2025
1 parent 8b1603b commit 8d9e749
Show file tree
Hide file tree
Showing 244 changed files with 107 additions and 8,841 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -538,13 +538,12 @@ final class ManagePledgeViewController: UIViewController, MessageBannerViewContr
// MARK: - Functions

private func goToRewards(_ project: Project) {
/// Render rewards carousel that has the shipping location dropdown
let vc = WithShippingRewardsCollectionViewController.instantiate(
with: project,
refTag: nil,
context: .managePledge
)
vc.pledgeViewDelegate = self
vc.noShippingPledgeViewDelegate = self

self.navigationController?.pushViewController(vc, animated: true)
}
Expand Down Expand Up @@ -596,14 +595,6 @@ extension ManagePledgeViewController: CancelPledgeViewControllerDelegate {
}
}

// MARK: - PledgeViewControllerDelegate

extension ManagePledgeViewController: PledgeViewControllerDelegate {
func pledgeViewControllerDidUpdatePledge(_: PledgeViewController, message: String) {
self.viewModel.inputs.pledgeViewControllerDidUpdatePledgeWithMessage(message)
}
}

extension ManagePledgeViewController: ManagePledgePaymentMethodViewDelegate {
func managePledgePaymentMethodViewDidTapFixButton(_: ManagePledgePaymentMethodView) {
self.viewModel.inputs.fixButtonTapped()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,7 @@ final class PledgePaymentMethodsViewController: UIViewController {
let topViewController = strongSelf.navigationController?.topViewController

assert(
topViewController is PledgeViewController ||
topViewController is NoShippingPledgeViewController ||
topViewController is NoShippingPledgeViewController ||
topViewController is PostCampaignCheckoutViewController ||
topViewController is NoShippingPostCampaignCheckoutViewController,
"PledgePaymentMethodsViewController is only intended to be presented as part of a pledge flow."
Expand Down
Loading

0 comments on commit 8d9e749

Please sign in to comment.