From 2c720c9d9b69700a42f55c02e4c9be07cbc2bc23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sat, 1 Dec 2018 23:28:49 +0000 Subject: omemo: remove unused commands MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- plugins/omemo_plugin.py | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'plugins') diff --git a/plugins/omemo_plugin.py b/plugins/omemo_plugin.py index db1f2919..6e7aca94 100644 --- a/plugins/omemo_plugin.py +++ b/plugins/omemo_plugin.py @@ -56,19 +56,6 @@ class Plugin(BasePlugin): help='Disable OMEMO encryption', ) - self.api.add_tab_command( - ConversationTab, - 'omemo_toggle', - self.command_toggle, - help='Toggle OMEMO encryption state', - ) - - self.api.add_command( - 'omemo_clear_devices', - self.command_clear_devices, - help='Clear all other OMEMO devices', - ) - self.api.add_command( 'encrypted_message', self.send_message, @@ -97,19 +84,6 @@ class Plugin(BasePlugin): def command_disable(self, args): pass - def command_toggle(self, _args): - pass - - def command_clear_devices(self, _args): - asyncio.ensure_future(self.xmpp['xep_0384'].clear_device_list()) - info = """ - Device list has been reset. - Your other devices will reannounce themselves next time they get - online, but they might not be able to read encrypted messages in the - meantime. - """ - self.info(textwrap.dedent(info).strip()) - def send_message(self, _args): asyncio.ensure_future( self._send_message( -- cgit v1.2.3