Commit b4c14442 authored by Frank Bessou's avatar Frank Bessou 🍁
Browse files

feat!: remove unused index_path/go_to_index_path functions

Searched across all projects on the forge.
parent 22f8d3da0275
......@@ -157,21 +157,6 @@ class BaseNode(VisitableMixIn):
return False
return True
# this function does not seem to be used anywhere
def index_path(self) -> List[int]:
if self.parent is None:
return []
myindex = self.parent.children.index(self)
parentindexpath = self.parent.index_path()
parentindexpath.append(myindex)
return parentindexpath
# this function does not seem to be used anywhere
def go_to_index_path(self, path) -> "rql.base.BaseNode":
if not path:
return self
return self.children[path[0]].go_to_index_path(path[1:])
def copy(self, stmt: Optional["rql.stmts.Statement"] = None) -> "BaseNode":
raise NotImplementedError()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment