From 12389f4097a8cab6bee7406e0999771c6a8abb86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= <philipp@hoerist.com> Date: Tue, 19 Feb 2019 19:19:00 +0100 Subject: [PATCH] Remove unused code --- gajim/common/modules/misc.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/gajim/common/modules/misc.py b/gajim/common/modules/misc.py index ddc396390d..e0358adaa9 100644 --- a/gajim/common/modules/misc.py +++ b/gajim/common/modules/misc.py @@ -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 -- GitLab