diff options
author | mathieui <mathieui@mathieui.net> | 2021-02-03 21:04:36 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2021-02-09 19:16:03 +0100 |
commit | 2cfe56bbbe47c9bf8aa87c48324091e90623d43f (patch) | |
tree | 59a426fb8535c76d6a23bff2801849328effa6f2 /poezio/windows | |
parent | ae0888bd3d6892f3da3ff0d7c3cbb60f61653f6c (diff) | |
download | poezio-2cfe56bbbe47c9bf8aa87c48324091e90623d43f.tar.gz poezio-2cfe56bbbe47c9bf8aa87c48324091e90623d43f.tar.bz2 poezio-2cfe56bbbe47c9bf8aa87c48324091e90623d43f.tar.xz poezio-2cfe56bbbe47c9bf8aa87c48324091e90623d43f.zip |
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.
Diffstat (limited to 'poezio/windows')
-rw-r--r-- | poezio/windows/roster_win.py | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/poezio/windows/roster_win.py b/poezio/windows/roster_win.py index c4a1c30b..74de7eef 100644 --- a/poezio/windows/roster_win.py +++ b/poezio/windows/roster_win.py @@ -268,14 +268,6 @@ class RosterWin(Win): added += len(theme.CHAR_ROSTER_ASKED) if show_s2s_errors and contact.error: added += len(theme.CHAR_ROSTER_ERROR) - if contact.tune: - added += len(theme.CHAR_ROSTER_TUNE) - if contact.mood: - added += len(theme.CHAR_ROSTER_MOOD) - if contact.activity: - added += len(theme.CHAR_ROSTER_ACTIVITY) - if contact.gaming: - added += len(theme.CHAR_ROSTER_GAMING) if show_roster_sub in ('all', 'incomplete', 'to', 'from', 'both', 'none'): added += len( @@ -309,18 +301,6 @@ class RosterWin(Win): if show_s2s_errors and contact.error: self.addstr(theme.CHAR_ROSTER_ERROR, to_curses_attr(theme.COLOR_ROSTER_ERROR)) - if contact.tune: - self.addstr(theme.CHAR_ROSTER_TUNE, - to_curses_attr(theme.COLOR_ROSTER_TUNE)) - if contact.activity: - self.addstr(theme.CHAR_ROSTER_ACTIVITY, - to_curses_attr(theme.COLOR_ROSTER_ACTIVITY)) - if contact.mood: - self.addstr(theme.CHAR_ROSTER_MOOD, - to_curses_attr(theme.COLOR_ROSTER_MOOD)) - if contact.gaming: - self.addstr(theme.CHAR_ROSTER_GAMING, - to_curses_attr(theme.COLOR_ROSTER_GAMING)) self.finish_line() def draw_resource_line(self, y: int, resource: Resource, colored: bool) -> None: @@ -394,32 +374,6 @@ class ContactInfoWin(Win): self.finish_line() i += 1 - if contact.tune: - self.addstr(i, 0, - 'Tune: %s' % common.format_tune_string(contact.tune), - to_curses_attr(theme.COLOR_NORMAL_TEXT)) - self.finish_line() - i += 1 - - if contact.mood: - self.addstr(i, 0, 'Mood: %s' % contact.mood, - to_curses_attr(theme.COLOR_NORMAL_TEXT)) - self.finish_line() - i += 1 - - if contact.activity: - self.addstr(i, 0, 'Activity: %s' % contact.activity, - to_curses_attr(theme.COLOR_NORMAL_TEXT)) - self.finish_line() - i += 1 - - if contact.gaming: - self.addstr( - i, 0, 'Game: %s' % common.format_gaming_string(contact.gaming), - to_curses_attr(theme.COLOR_NORMAL_TEXT)) - self.finish_line() - i += 1 - def draw_group_info(self, group: RosterGroup) -> None: """ draw the group information |