Commit 7aab19fb authored by Philipp Hörist's avatar Philipp Hörist

Remove unused code

parent a5c13198
......@@ -165,13 +165,6 @@ class CommonConnection:
def get_status(self):
return app.SHOW_LIST[self.connected]
def check_jid(self, jid):
"""
This function must be implemented by derived classes. It has to return
the valid jid, or raise a helpers.InvalidFormat exception
"""
raise NotImplementedError
def new_account(self, name, config, sync=False):
"""
To be implemented by derived classes
......@@ -302,9 +295,6 @@ class Connection(CommonConnection, ConnectionHandlers):
'client_cert')
self.client_cert_passphrase = ''
def check_jid(self, jid):
return helpers.parse_jid(jid)
def get_own_jid(self, warn=False):
"""
Return the last full JID we received on a bind event.
......
......@@ -101,9 +101,6 @@ class ConnectionZeroconf(CommonConnection, ConnectionHandlersZeroconf):
self.username = app.config.get_per('accounts',
app.ZEROCONF_ACC_NAME, 'name')
def check_jid(self, jid):
return jid
def get_own_jid(self, *args, **kwargs):
return nbxmpp.JID(self.username + '@' + self.host)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment