Skip to content

Commit b6e11b6

Browse files
committed
refactor(tor): remove dead code
1 parent 5349cc2 commit b6e11b6

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

lib/electrumx_rpc/electrumx_client.dart

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -246,14 +246,6 @@ class ElectrumXClient {
246246
"Tor preference set but Tor is not enabled, killswitch not set,"
247247
" connecting to Electrum adapter through clearnet",
248248
);
249-
} else {
250-
// ... But if the killswitch is set, then we throw an exception.
251-
// This should never be reached.
252-
throw Exception(
253-
"Tor preference and killswitch set but Tor is not enabled, "
254-
"not connecting to Electrum adapter",
255-
);
256-
// TODO [prio=low]: Try to start Tor.
257249
}
258250
} else {
259251
// Get the proxy info from the TorService.

lib/utilities/connection_check/electrum_connection_check.dart

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,6 @@ Future<bool> checkElectrumServer({
4040
Logging.instance.w(
4141
"Tor preference set but Tor is not enabled, killswitch not set, connecting to Electrum adapter through clearnet",
4242
);
43-
} else {
44-
// ... But if the killswitch is set, then we throw an exception.
45-
// This should never be reached.
46-
throw Exception(
47-
"Tor preference and killswitch set but Tor is not enabled, not connecting to Electrum adapter",
48-
);
49-
// TODO [prio=low]: Try to start Tor.
5043
}
5144
} else {
5245
// If Tor is connected, get the proxy info from the TorService.

0 commit comments

Comments
 (0)