From 2cfe56bbbe47c9bf8aa87c48324091e90623d43f Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 3 Feb 2021 21:04:36 +0100 Subject: Remove activity/mood/gaming/tune from poezio core rationale: probably 0.1% of poezio users have ever used the commands, and a very small number of users are using the PEP events like that. It is better to unclutter the poezio source and add it as a plugin, with less tight coupling. --- poezio/core/completions.py | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'poezio/core/completions.py') diff --git a/poezio/core/completions.py b/poezio/core/completions.py index 98ca9ba0..88ed57b3 100644 --- a/poezio/core/completions.py +++ b/poezio/core/completions.py @@ -13,7 +13,6 @@ from functools import reduce from slixmpp import JID from poezio import common -from poezio import pep from poezio import tabs from poezio import xdg from poezio.common import safeJID @@ -318,33 +317,6 @@ class CompletionCore: comp = sorted(onlines) + sorted(offlines) return Completion(the_input.new_completion, comp, n, quotify=True) - def activity(self, the_input): - """Completion for /activity""" - n = the_input.get_argument_position(quoted=True) - args = common.shell_split(the_input.text) - if n == 1: - return Completion( - the_input.new_completion, - sorted(pep.ACTIVITIES.keys()), - n, - quotify=True) - elif n == 2: - if args[1] in pep.ACTIVITIES: - l = list(pep.ACTIVITIES[args[1]]) - l.remove('category') - l.sort() - return Completion(the_input.new_completion, l, n, quotify=True) - - def mood(self, the_input): - """Completion for /mood""" - n = the_input.get_argument_position(quoted=True) - if n == 1: - return Completion( - the_input.new_completion, - sorted(pep.MOODS.keys()), - 1, - quotify=True) - def last_activity(self, the_input): """ Completion for /last_activity -- cgit v1.2.3