Skip to content

Commit 711a7ee

Browse files
committed
Remove no longer needed workaround to block privacy banner dismissal
Superseded by the changes in 7c1deb9 and 729e70d
1 parent 729e70d commit 711a7ee

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

WooCommerce/Classes/ViewRelated/Dashboard/Settings/Privacy/PrivacyBannerPresenter.swift

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,3 @@ extension PrivacyBannerPresenter {
100100
static let retry = NSLocalizedString("Retry", comment: "Retry title on the notice action button")
101101
}
102102
}
103-
104-
extension BottomSheetViewController {
105-
/// Temporary hack to prevent the `PrivacyBannerViewController` to be dismissed.
106-
/// This should be changed once https://github.com/wordpress-mobile/WordPressUI-iOS/pull/126 is merged.
107-
///
108-
public override func dismiss(animated flag: Bool, completion: (() -> Void)? = nil) {
109-
if children.first is PrivacyBannerViewController {
110-
return
111-
}
112-
super.dismiss(animated: flag, completion: completion)
113-
}
114-
}

0 commit comments

Comments
 (0)