Skip to content
Snippets Groups Projects
Commit 12389f40 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Remove unused code

parent 72fc96ae
No related branches found
No related tags found
No related merge requests found
......@@ -157,24 +157,3 @@ def parse_xhtml(stanza):
if app.config.get('ignore_incoming_xhtml'):
return None
return stanza.getXHTML()
# XEP-0319: Last User Interaction in Presence
def parse_idle(stanza):
idle_tag = stanza.getTag('idle', namespace=nbxmpp.NS_IDLE)
if idle_tag is None:
return
since = idle_tag.getAttr('since')
if since is None:
log.warning('No since attr in idle node')
log.warning(stanza)
return
timestamp = parse_datetime(since, convert='utc', epoch=True)
if timestamp is None:
log.warning('Invalid timestamp received: %s', since)
log.warning(stanza)
return timestamp
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment