From fbd3d0bcfdf31f20614817710d81c9ba88c70194 Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 10 Feb 2022 18:32:35 +0100 Subject: internal: remove unused get_text_window --- poezio/tabs/basetabs.py | 6 ------ poezio/tabs/conversationtab.py | 3 --- poezio/tabs/muctab.py | 3 --- poezio/tabs/privatetab.py | 3 --- 4 files changed, 15 deletions(-) diff --git a/poezio/tabs/basetabs.py b/poezio/tabs/basetabs.py index 83e8049c..431acf17 100644 --- a/poezio/tabs/basetabs.py +++ b/poezio/tabs/basetabs.py @@ -390,12 +390,6 @@ class Tab: """ return self.name - def get_text_window(self) -> Optional[windows.TextWin]: - """ - Returns the principal TextWin window, if there's one - """ - return None - def on_input(self, key: str, raw: bool): """ raw indicates if the key should activate the associated command or not. diff --git a/poezio/tabs/conversationtab.py b/poezio/tabs/conversationtab.py index a7c019e4..02f9772b 100644 --- a/poezio/tabs/conversationtab.py +++ b/poezio/tabs/conversationtab.py @@ -439,9 +439,6 @@ class ConversationTab(OneToOneTab): 1, self.width, self.height - 2 - self.core.information_win_size - Tab.tab_win_height(), 0) - def get_text_window(self): - return self.text_win - def on_close(self): Tab.on_close(self) if config.get_by_tabname('send_chat_states', self.general_jid): diff --git a/poezio/tabs/muctab.py b/poezio/tabs/muctab.py index e40630ac..654b990a 100644 --- a/poezio/tabs/muctab.py +++ b/poezio/tabs/muctab.py @@ -466,9 +466,6 @@ class MucTab(ChatTab): # TODO: send the disco#info identity name here, if it exists. return self.jid.node - def get_text_window(self) -> windows.TextWin: - return self.text_win - def on_lose_focus(self) -> None: if self.joined: if self.input.text: diff --git a/poezio/tabs/privatetab.py b/poezio/tabs/privatetab.py index 25f50a49..fc126b66 100644 --- a/poezio/tabs/privatetab.py +++ b/poezio/tabs/privatetab.py @@ -361,9 +361,6 @@ class PrivateTab(OneToOneTab): 1, self.width, self.height - 2 - self.core.information_win_size - Tab.tab_win_height(), 0) - def get_text_window(self): - return self.text_win - @refresh_wrapper.conditional def rename_user(self, old_nick, user): """ -- cgit v1.2.3