Skip to content

Commit dfbc04e

Browse files
committed
Remove ConnectivityObserver from ServiceLocator
1 parent b3aa60b commit dfbc04e

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

WooCommerce/Classes/ServiceLocator/ServiceLocator.swift

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,6 @@ final class ServiceLocator {
7070
///
7171
private static var _receiptPrinter: PrinterService = AirPrintReceiptPrinterService()
7272

73-
/// Observer for network connectivity
74-
///
75-
private static var _connectivityObserver: ConnectivityObserver = DefaultConnectivityObserver()
76-
7773
// MARK: - Getters
7874

7975
/// Provides the access point to the analytics.
@@ -186,12 +182,6 @@ final class ServiceLocator {
186182
static var receiptPrinterService: PrinterService {
187183
_receiptPrinter
188184
}
189-
190-
/// Provides access point to the ConnectivityObserver.
191-
/// - Returns: An implementation of the ConnectivityObserver protocol.
192-
static var connectivityObserver: ConnectivityObserver {
193-
_connectivityObserver
194-
}
195185
}
196186

197187

@@ -302,14 +292,6 @@ extension ServiceLocator {
302292

303293
_receiptPrinter = mock
304294
}
305-
306-
static func setConnectivityObserver(_ mock: ConnectivityObserver) {
307-
guard isRunningTests() else {
308-
return
309-
}
310-
311-
_connectivityObserver = mock
312-
}
313295
}
314296

315297

0 commit comments

Comments
 (0)