Skip to content

Commit 5d7bfde

Browse files
committed
Remove comments where we do not need migration
1 parent f3c83fd commit 5d7bfde

File tree

8 files changed

+0
-13
lines changed

8 files changed

+0
-13
lines changed

WooCommerce/Classes/ViewModels/Order Details/Refund Details/RefundDetailsViewModel.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ extension RefundDetailsViewModel {
128128

129129
case .orderItem:
130130
let item = refund.items[indexPath.row]
131-
// TODO: Replace with ProductDetailRouter, native
132131
let loaderViewController = ProductLoaderViewController(model: .init(orderItemRefund: item),
133132
siteID: refund.siteID,
134133
forceReadOnly: true)

WooCommerce/Classes/ViewRelated/Dashboard/ProductStock/ProductStockDashboardCard.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ private extension ProductStockDashboardCard {
189189
.product(productID: item.productID)
190190
}
191191
}()
192-
// TODO: Replace with ProductDetailRouter
193192
let loaderViewController = ProductLoaderViewController(model: model,
194193
siteID: viewModel.siteID,
195194
forceReadOnly: false)

WooCommerce/Classes/ViewRelated/Dashboard/TopPerformers/TopPerformerDataViewController.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ private extension TopPerformerDataViewController {
176176
/// Presents the product details for a given TopEarnerStatsItem.
177177
///
178178
func presentProductDetails(statsItem: TopEarnerStatsItem) {
179-
// TODO: Replace with ProductDetailRouter
180179
let loaderViewController = ProductLoaderViewController(model: .init(topEarnerStatsItem: statsItem),
181180
siteID: siteID,
182181
forceReadOnly: false)

WooCommerce/Classes/ViewRelated/Dashboard/TopPerformers/TopPerformersDashboardView.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ private extension TopPerformersDashboardView {
181181
}
182182

183183
func productDetailView(for item: TopEarnerStatsItem) -> UIViewController {
184-
// TODO: Replace with ProductDetailRouter
185184
let loaderViewController = ProductLoaderViewController(model: .init(topEarnerStatsItem: item),
186185
siteID: viewModel.siteID,
187186
forceReadOnly: false)

WooCommerce/Classes/ViewRelated/MainTabBarController.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,6 @@ private extension MainTabBarController {
10361036
return .productVariation(productID: productID, variationID: variationID)
10371037
}
10381038
}()
1039-
// TODO: Replace with ProductDetailRouter
10401039
let productViewController = ProductLoaderViewController(model: model,
10411040
siteID: error.siteID,
10421041
forceReadOnly: false)

WooCommerce/Classes/ViewRelated/Orders/Order Details/Product List Section/Product Details/AggregatedProductListViewController.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ private extension AggregatedProductListViewController {
122122
/// Displays the product details screen for the provided AggregateOrderItem
123123
///
124124
func productWasPressed(orderItem: AggregateOrderItem) {
125-
// TODO: Replace with ProductDetailRouter, native
126125
let loaderViewController = ProductLoaderViewController(model: .init(aggregateOrderItem: orderItem),
127126
siteID: viewModel.order.siteID,
128127
forceReadOnly: true)

WooCommerce/Classes/ViewRelated/Products/Product Loader/ProductLoaderView.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ struct ProductLoaderView: UIViewControllerRepresentable {
99
let forceReadOnly: Bool
1010

1111
func makeUIViewController(context: Context) -> UINavigationController {
12-
// TODO: Replace with ProductDetailRouter
1312
let viewController = ProductLoaderViewController(model: model,
1413
siteID: siteID,
1514
forceReadOnly: forceReadOnly)

WooCommerce/WooCommerceTests/ViewRelated/Products/ProductDetailsFactoryTests.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ final class ProductDetailsFactoryTests: XCTestCase {
1212

1313
let exp = expectation(description: #function)
1414
// Action
15-
// TODO: Replace with ProductDetailRouter
1615
ProductDetailsFactory.productDetails(product: product,
1716
presentationStyle: .navigationStack,
1817
forceReadOnly: false) { viewController in
@@ -31,7 +30,6 @@ final class ProductDetailsFactoryTests: XCTestCase {
3130
let exp = expectation(description: #function)
3231

3332
// Action
34-
// TODO: Replace with ProductDetailRouter
3533
ProductDetailsFactory.productDetails(product: product,
3634
presentationStyle: .navigationStack,
3735
forceReadOnly: false) { viewController in
@@ -50,7 +48,6 @@ final class ProductDetailsFactoryTests: XCTestCase {
5048
let exp = expectation(description: #function)
5149

5250
// Action
53-
// TODO: Replace with ProductDetailRouter
5451
ProductDetailsFactory.productDetails(product: product,
5552
presentationStyle: .navigationStack,
5653
forceReadOnly: false) { viewController in
@@ -69,7 +66,6 @@ final class ProductDetailsFactoryTests: XCTestCase {
6966
let exp = expectation(description: #function)
7067

7168
// Action
72-
// TODO: Replace with ProductDetailRouter
7369
ProductDetailsFactory.productDetails(product: product,
7470
presentationStyle: .navigationStack,
7571
forceReadOnly: false) { viewController in
@@ -88,7 +84,6 @@ final class ProductDetailsFactoryTests: XCTestCase {
8884

8985
// Action
9086
waitForExpectation { expectation in
91-
// TODO: Replace with ProductDetailRouter
9287
ProductDetailsFactory.productDetails(product: product,
9388
presentationStyle: .navigationStack,
9489
forceReadOnly: false) { viewController in
@@ -105,7 +100,6 @@ final class ProductDetailsFactoryTests: XCTestCase {
105100

106101
// Action
107102
waitForExpectation { expectation in
108-
// TODO: Replace with ProductDetailRouter
109103
ProductDetailsFactory.productDetails(product: product,
110104
presentationStyle: .navigationStack,
111105
forceReadOnly: true) { viewController in

0 commit comments

Comments
 (0)