Skip to content

Commit 2ec7b79

Browse files
committed
state.resetNetworkProtocolAvailability() is obsolete
1 parent cf76ae4 commit 2ec7b79

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

src/bitmessageqt/settings.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,7 @@ def accept(self):
314314
self.comboBoxProxyType.currentText()[0:5] != 'SOCKS'
315315
):
316316
self.parent.statusbar.clearMessage()
317-
# just in case we changed something in the network connectivity
318-
state.resetNetworkProtocolAvailability()
317+
319318
self.config.set(
320319
'bitmessagesettings', 'socksproxytype',
321320
str(self.comboBoxProxyType.currentText())

src/state.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
# for Tor hidden service
1010
socksIP = None
1111

12-
# Network protocols availability, initialised below
13-
networkProtocolAvailability = None
14-
1512
appdata = '' # holds the location of the application data storage directory
1613

1714
# Set to 1 by the doCleanShutdown function.
@@ -54,14 +51,6 @@
5451

5552
Peer = collections.namedtuple('Peer', ['host', 'port'])
5653

57-
58-
def resetNetworkProtocolAvailability():
59-
global networkProtocolAvailability
60-
networkProtocolAvailability = {'IPv4': None, 'IPv6': None, 'onion': None}
61-
62-
63-
resetNetworkProtocolAvailability()
64-
6554
dandelion = 0
6655

6756
testmode = False

0 commit comments

Comments
 (0)