walker: drop path categories master
authorDmitry Selyutin <ghostmansd@gmail.com>
Mon, 4 Dec 2023 17:55:20 +0000 (20:55 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Mon, 4 Dec 2023 17:55:20 +0000 (20:55 +0300)
src/mdis/walker.py

index 6d316ac61999029ed9acd194e8f2a7bc41db5c3d..4ed17a37f05a685ff28f925d88eee3ff4fa92003 100644 (file)
@@ -13,37 +13,6 @@ class WalkerMeta(dispatcher.DispatcherMeta):
     pass
 
 
-class GenericPath:
-    def __init__(self, path):
-        self.__path = path
-        return super().__init__()
-
-    def __str__(self):
-        return self.__path.__str__()
-
-    def __repr__(self):
-        return f"{self.__class__.__name__}({str(self)})"
-
-    @property
-    def path(self):
-        return self.__path
-
-
-class IndexPath(GenericPath):
-    def __str__(self):
-        return f"[{self.path!r}]"
-
-
-class AttributePath(GenericPath):
-    def __str__(self):
-        return f".{self.path}"
-
-
-class HashPath(GenericPath):
-    def __str__(self):
-        return f"{{{self.path}}}"
-
-
 class Walker(dispatcher.Dispatcher, metaclass=WalkerMeta):
     @dispatcher.Hook(tuple, list)
     def dispatch_ordered_sequence(self, node):