home · contact · privacy
Remove dead code.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 11 Sep 2025 20:41:30 +0000 (22:41 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 11 Sep 2025 20:41:30 +0000 (22:41 +0200)
ircplom/client.py
ircplom/client_tui.py

index d125aa75b68dee5c042cb5ee100eabfc42d0f720..a2c78b2ad2bcb29e0812b98b0a29ad32bbd4f4a3 100644 (file)
@@ -219,7 +219,6 @@ class IntoEndnodeUpdatesMixin(AutoAttrMixin):
 
 
 class _UpdatingMixin(IntoEndnodeUpdatesMixin):
-    _on_update: Callable
 
     def __init__(self, on_update: Callable, **kwargs) -> None:
         super().__init__(**kwargs)
index fa6b5a41c4d974033383ac1d22c792eea4f7f935..b07a532d0b3cf52fda68c3da4146bff76a06a989 100644 (file)
@@ -87,11 +87,7 @@ class _UpdatingNode(AutoAttrMixin):
         setattr(self, key, value)
 
     def _unset(self, key: str) -> None:
-        attr = getattr(self, key)
-        if isinstance(attr, tuple):
-            setattr(self, key, tuple())
-        else:
-            attr.clear()
+        getattr(self, key).clear()
 
     def _is_set(self, key: str) -> bool:
         return hasattr(self, key)
@@ -229,8 +225,6 @@ class _UpdatingChannel(_UpdatingNode, Channel):
                         f'RAW:{self.topic.who} set topic: {self.topic.what}')
             return None
         assert update.key == 'user_ids'
-        if update.value is None:
-            return None
         assert isinstance(update.value, set)
         d = {'NUHS:joining': tuple(id_ for id_ in update.value
                                    if id_ not in self.user_ids)