From 9a10492785290444ea6cea30e79b6c8249a3331c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sun, 18 Nov 2018 23:23:52 +0100 Subject: [PATCH] xep_0384: Remove unused functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The fingerprint method is not available anymore. That will need to be computer from the bundle public key. Signed-off-by: Maxime “pep” Buquet --- plugin.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/plugin.py b/plugin.py index 18ae1f7..6dd3a8b 100644 --- a/plugin.py +++ b/plugin.py @@ -44,16 +44,6 @@ def b64dec(data): return base64.b64decode(data.decode('ASCII')) -def splitn(s, n): - sections = len(s) // n - for i in range(sections): - yield s[n * i:n * (i + 1)] - - -def format_fingerprint(fp): - return ":".join(splitn(fp, 4)) - - # XXX: This should probably be moved in plugins/base.py? class PluginCouldNotLoad(Exception): pass @@ -138,10 +128,6 @@ class XEP_0384(BasePlugin): def my_device_id(self): return self._device_id - def my_fingerprint(self): - bundle = self._omemo.get_bundle() - return format_fingerprint(bundle.fingerprint) - def _generate_bundle_iq(self): bundle = self._omemo.get_bundle() log.debug('FOO2 Bundle: %r', bundle.fingerprint)