Skip to content

Commit 6abd191

Browse files
committed
Remove unused analytics parameter
1 parent 96ceac7 commit 6abd191

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

WooCommerce/Classes/POS/Controllers/POSOrderListController.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ protocol POSSearchingOrderListControllerProtocol: POSOrderListControllerProtocol
3131
private var cachedOrders: [POSOrder] = []
3232
private(set) var selectedOrder: POSOrder?
3333
private let orderListFetchStrategyFactory: POSOrderListFetchStrategyFactoryProtocol
34-
private let analytics: POSAnalyticsProviding
3534
private var paginationTracker: AsyncPaginationTracker {
3635
if let existing = strategyPaginationTracker[fetchStrategy.id] {
3736
return existing
@@ -42,11 +41,9 @@ protocol POSSearchingOrderListControllerProtocol: POSOrderListControllerProtocol
4241
}
4342

4443
init(orderListFetchStrategyFactory: POSOrderListFetchStrategyFactoryProtocol,
45-
analytics: POSAnalyticsProviding,
4644
initialState: POSOrderListState = .loading([])) {
4745
self.ordersViewState = initialState
4846
self.orderListFetchStrategyFactory = orderListFetchStrategyFactory
49-
self.analytics = analytics
5047
self.fetchStrategy = orderListFetchStrategyFactory.defaultStrategy()
5148
}
5249

WooCommerce/Classes/POS/TabBar/POSTabCoordinator.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,7 @@ private extension POSTabCoordinator {
214214
appPasswordSupportState: isAppPasswordSupported,
215215
currencyFormatter: CurrencyFormatter(currencySettings: currencySettings),
216216
analytics: POSOrderListFetchAnalytics(analytics: serviceAdaptor.analytics)
217-
),
218-
analytics: serviceAdaptor.analytics
217+
)
219218
),
220219

221220
onPointOfSaleModeActiveStateChange: { [weak self] isEnabled in

WooCommerce/WooCommerceTests/POS/Controllers/POSOrderListControllerTests.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ import struct Yosemite.POSOrder
99
final class POSOrderListControllerTests {
1010
private let orderListService = MockPOSOrderListService()
1111
private lazy var fetchStrategyFactory = MockPOSOrderListFetchStrategyFactory(orderService: orderListService)
12-
private lazy var sut = POSOrderListController(orderListFetchStrategyFactory: fetchStrategyFactory,
13-
analytics: MockPOSAnalytics())
12+
private lazy var sut = POSOrderListController(orderListFetchStrategyFactory: fetchStrategyFactory)
1413

1514
@Test func loadOrders_requests_first_page_after_loading_two_pages() async throws {
1615
try #require(sut.ordersViewState.isLoading)

0 commit comments

Comments
 (0)