diff options
author | lovetox <philipp@hoerist.com> | 2022-04-02 17:59:11 +0300 |
---|---|---|
committer | lovetox <philipp@hoerist.com> | 2022-04-02 17:59:11 +0300 |
commit | a55e844c455066b22f2205524553020e60a71a36 (patch) | |
tree | 493ce8ab559dbc7bd849e18322e80b893ab42d8b | |
parent | f2189e134dd07398c445e5c88aa07625dacf59e0 (diff) |
refactor: Remove unused attribute
-rw-r--r-- | nbxmpp/simplexml.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/nbxmpp/simplexml.py b/nbxmpp/simplexml.py index 4e37cdb..9c380f7 100644 --- a/nbxmpp/simplexml.py +++ b/nbxmpp/simplexml.py @@ -592,7 +592,6 @@ class NodeBuilder: _parser: Any Parse: Callable[[str, bool], None] __depth: int - __last_depth: int __max_depth: int _dispatch_depth: int _document_attrs: Optional[Attrs] @@ -634,7 +633,6 @@ class NodeBuilder: self.Parse = self._parser.Parse self.__depth = 0 - self.__last_depth = 0 self.__max_depth = 0 self._dispatch_depth = dispatch_depth self._document_attrs = None @@ -799,12 +797,10 @@ class NodeBuilder: return self.__depth <= level < self.__max_depth def _inc_depth(self) -> None: - self.__last_depth = self.__depth self.__depth += 1 self.__max_depth = max(self.__depth, self.__max_depth) def _dec_depth(self) -> None: - self.__last_depth = self.__depth self.__depth -= 1 def XML2Node(xml_str: str) -> Optional[Node]: |