diff options
Diffstat (limited to 'mesonbuild/interpreterbase/baseobjects.py')
-rw-r--r-- | mesonbuild/interpreterbase/baseobjects.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/mesonbuild/interpreterbase/baseobjects.py b/mesonbuild/interpreterbase/baseobjects.py index 3c7085b..7e98b48 100644 --- a/mesonbuild/interpreterbase/baseobjects.py +++ b/mesonbuild/interpreterbase/baseobjects.py @@ -176,26 +176,3 @@ class IterableObject(metaclass=ABCMeta): def size(self) -> int: raise MesonBugException(f'size not implemented for {self.__class__.__name__}') - -class RangeHolder(MesonInterpreterObject, IterableObject): - def __init__(self, start: int, stop: int, step: int, *, subproject: str) -> None: - super().__init__(subproject=subproject) - self.range = range(start, stop, step) - self.operators.update({ - MesonOperator.INDEX: self.op_index, - }) - - def op_index(self, other: int) -> int: - try: - return self.range[other] - except: - raise InvalidArguments(f'Index {other} out of bounds of range.') - - def iter_tuple_size(self) -> None: - return None - - def iter_self(self) -> T.Iterator[int]: - return iter(self.range) - - def size(self) -> int: - return len(self.range) |