Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/objdictgen/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -931,13 +931,13 @@ def UpdateMapVariable(self, index: int, subindex: int, size: int):

def RemoveLine(self, index: int, maxval: int, incr: int = 1):
""" Remove the given index and shift all the following indexes """
# FIXME: This function is called from NodeManager.RemoveCurrentVariable()
# but uncertain on how it is used.
i = index
while i < maxval and self.IsEntry(i + incr):
# FIXME: Not sure what this does
self.Dictionary[i] = self.Dictionary[i + incr]
i += incr
self.Dictionary.pop(i)
self.ParamsDictionary.pop(i, None)

def RemoveIndex(self, index: int|Iterable[int]) -> None:
""" Remove the given index or indexes """
Expand Down
Loading