remove duplicate function

This commit is contained in:
Yann Leboulanger 2010-01-04 11:58:42 +01:00
parent ee702b8660
commit dffb2c308b
2 changed files with 1 additions and 5 deletions

View File

@ -223,11 +223,6 @@ def get_server_from_jid(jid):
pos = jid.find('@') + 1 # after @
return jid[pos:]
def get_resource_from_jid(jid):
tokens = jid.split('/', 1)
if len(tokens) > 1:
return tokens[1]
def get_name_and_server_from_jid(jid):
name = get_nick_from_jid(jid)
server = get_server_from_jid(jid)

View File

@ -382,6 +382,7 @@ if __name__ == '__main__':
# Session Management support
try:
import gnome.ui
raise ImportError
except ImportError:
pass
else: