summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2022-02-10 18:32:35 +0100
committerMaxime “pep” Buquet <pep@bouah.net>2022-02-25 22:35:30 +0100
commitfbd3d0bcfdf31f20614817710d81c9ba88c70194 (patch)
tree02461491f1a91f9e69cf16794548e275382d8060
parent456c4c46a6a740063e25ffcdd6cbdfeb70e4d621 (diff)
downloadpoezio-fbd3d0bcfdf31f20614817710d81c9ba88c70194.tar.gz
poezio-fbd3d0bcfdf31f20614817710d81c9ba88c70194.tar.bz2
poezio-fbd3d0bcfdf31f20614817710d81c9ba88c70194.tar.xz
poezio-fbd3d0bcfdf31f20614817710d81c9ba88c70194.zip
internal: remove unused get_text_window
-rw-r--r--poezio/tabs/basetabs.py6
-rw-r--r--poezio/tabs/conversationtab.py3
-rw-r--r--poezio/tabs/muctab.py3
-rw-r--r--poezio/tabs/privatetab.py3
4 files changed, 0 insertions, 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):
"""