diff options
author | Anton Khirnov <anton@khirnov.net> | 2020-02-05 14:24:40 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-02-05 14:26:33 +0100 |
commit | f6a67c33c360b10cd1c7d876c741846028e35f47 (patch) | |
tree | a6309aff59a938c975286c433ae8b3a619997e72 /alot | |
parent | f0f911b0063f737f81096078bcf0ba98f97b9c52 (diff) |
buffers/thread: drop a useless getter function
Diffstat (limited to 'alot')
-rw-r--r-- | alot/buffers/thread.py | 4 | ||||
-rw-r--r-- | alot/commands/thread.py | 2 |
2 files changed, 1 insertions, 5 deletions
diff --git a/alot/buffers/thread.py b/alot/buffers/thread.py index faf3e3c2..16b9dae9 100644 --- a/alot/buffers/thread.py +++ b/alot/buffers/thread.py @@ -54,10 +54,6 @@ class ThreadBuffer(Buffer): info['intersection_tags'] = self.translated_tags_str(intersection=True) return info - def get_selected_thread(self): - """Return the displayed :class:`~alot.db.Thread`.""" - return self.thread - def rebuild(self): try: self.thread.refresh() diff --git a/alot/commands/thread.py b/alot/commands/thread.py index 6f83083a..28edaa84 100644 --- a/alot/commands/thread.py +++ b/alot/commands/thread.py @@ -673,7 +673,7 @@ class PipeCommand(Command): # get messages to pipe if self.whole_thread: - thread = ui.current_buffer.get_selected_thread() + thread = ui.current_buffer.thread if not thread: return to_print = thread.get_messages().keys() |