home · contact · privacy
Remove code no longer used after getting rid of .cmd__connect overload.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 6 Aug 2025 13:52:19 +0000 (15:52 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 6 Aug 2025 13:52:19 +0000 (15:52 +0200)
ircplom/client_tui.py

index a9fce33c085256c4f8592cfe16b1bd22c2a75436..79992b9437101d205bafc66bfd9881b157b34f11 100644 (file)
@@ -36,8 +36,7 @@ class _ClientPromptWidget(PromptWidget):
 class _ClientWindow(Window, ClientQueueMixin):
     prompt: _ClientPromptWidget
 
-    def __init__(self, parent: 'ClientTui', chat: str = '', **kwargs) -> None:
-        self._parent = parent
+    def __init__(self, chat: str = '', **kwargs) -> None:
         self.chat = chat
         super().__init__(**kwargs)
 
@@ -91,8 +90,8 @@ class ClientTui(BaseTui):
         new_idx = len(self._windows)
         win_class = (_PrivmsgWindow if (chat and chat[0].isalpha())
                      else _ClientWindow)
-        win = win_class(parent=self, idx=new_idx, term=self._term,
-                        _q_out=self._q_out, client_id=client_id, chat=chat)
+        win = win_class(idx=new_idx, term=self._term, _q_out=self._q_out,
+                        client_id=client_id, chat=chat)
         self._windows += [win]
         self._switch_window(new_idx)
         return win