home · contact · privacy
Remove dead code (no longer needed since we into_endnode_updates).
authorChristian Heller <c.heller@plomlompom.de>
Fri, 19 Sep 2025 10:43:45 +0000 (12:43 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Fri, 19 Sep 2025 10:43:45 +0000 (12:43 +0200)
ircplom/client_tui.py

index 94025388d079738d6778c109dcb168bc24a748bc..46c4106cbf2144d5cad39d4d845d8c3e8cc98de2 100644 (file)
@@ -30,13 +30,6 @@ class _Update:
         self.path = path
         self.value = value
         self.force_log = force_log
-        for cls in [cls for cls in locals().values()
-                    if isinstance(cls, type)
-                    and issubclass(cls, _UpdatingNode)
-                    and cls is not type(value)
-                    and issubclass(cls, type(value))]:
-            self.value = cls()
-            self.value.copy_annotated_attrs(value)
 
     @property
     def key(self) -> str:
@@ -54,12 +47,6 @@ class _UpdatingNode(AutoAttrMixin):
     def _make_attr(self, cls: Callable, key: str):
         return cls()
 
-    def copy_annotated_attrs(self, original) -> None:
-        'From original copy those of its attributes annotated for self.'
-        for key in [k for k in self._deep_annotations()
-                    if hasattr(original, k)]:
-            setattr(self, key, getattr(original, key))
-
     @classmethod
     def _scope(cls, key: str) -> LogScope:
         scopes: dict[str, LogScope] = {}