state.resetNetworkProtocolAvailability() is obsolete

This commit is contained in:
Dmitri Bogomolov 2019-07-30 11:16:48 +03:00
parent 18392017c6
commit df66277e2d
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13
2 changed files with 1 additions and 13 deletions

View File

@ -315,8 +315,7 @@ class SettingsDialog(QtGui.QDialog):
):
self.net_restart_needed = True
self.parent.statusbar.clearMessage()
# just in case we changed something in the network connectivity
state.resetNetworkProtocolAvailability()
self.config.set(
'bitmessagesettings', 'socksproxytype',
str(self.comboBoxProxyType.currentText())

View File

@ -9,9 +9,6 @@ extPort = None
# for Tor hidden service
socksIP = None
# Network protocols availability, initialised below
networkProtocolAvailability = None
appdata = '' # holds the location of the application data storage directory
# Set to 1 by the doCleanShutdown function.
@ -54,14 +51,6 @@ discoveredPeers = {}
Peer = collections.namedtuple('Peer', ['host', 'port'])
def resetNetworkProtocolAvailability():
global networkProtocolAvailability
networkProtocolAvailability = {'IPv4': None, 'IPv6': None, 'onion': None}
resetNetworkProtocolAvailability()
dandelion = 0
testmode = False