Remove unused or old config values

This commit is contained in:
Philipp Hörist 2017-06-06 21:24:27 +02:00
parent a5f6ead063
commit b5e9b07a07
2 changed files with 1 additions and 4 deletions

View file

@ -1007,7 +1007,7 @@ class Connection(CommonConnection, ConnectionHandlers):
Start a connection to the XMPP server Start a connection to the XMPP server
Returns connection, and connection type ('tls', 'ssl', 'plain', '') data Returns connection, and connection type ('tls', 'ssl', 'plain', '') data
MUST contain hostname, usessl, proxy, use_custom_host, custom_host (if MUST contain hostname, proxy, use_custom_host, custom_host (if
use_custom_host), custom_port (if use_custom_host) use_custom_host), custom_port (if use_custom_host)
""" """
if self.connection: if self.connection:
@ -1039,7 +1039,6 @@ class Connection(CommonConnection, ConnectionHandlers):
custom_p = data['custom_port'] custom_p = data['custom_port']
else: else:
hostname = gajim.config.get_per('accounts', self.name, 'hostname') hostname = gajim.config.get_per('accounts', self.name, 'hostname')
usessl = gajim.config.get_per('accounts', self.name, 'usessl')
self.try_connecting_for_foo_secs = gajim.config.get_per('accounts', self.try_connecting_for_foo_secs = gajim.config.get_per('accounts',
self.name, 'try_connecting_for_foo_secs') self.name, 'try_connecting_for_foo_secs')
proxy = helpers.get_proxy_info(self.name) proxy = helpers.get_proxy_info(self.name)

View file

@ -4026,14 +4026,12 @@ class AccountCreationWizardWindow:
config['hostname'] = server config['hostname'] = server
config['savepass'] = savepass config['savepass'] = savepass
config['password'] = password config['password'] = password
config['resource'] = 'Gajim'
config['anonymous_auth'] = anonymous config['anonymous_auth'] = anonymous
config['priority'] = 5 config['priority'] = 5
config['autoconnect'] = True config['autoconnect'] = True
config['no_log_for'] = '' config['no_log_for'] = ''
config['sync_with_global_status'] = True config['sync_with_global_status'] = True
config['proxy'] = '' config['proxy'] = ''
config['usessl'] = False
config['use_custom_host'] = False config['use_custom_host'] = False
config['custom_port'] = 0 config['custom_port'] = 0
config['custom_host'] = '' config['custom_host'] = ''