summaryrefslogtreecommitdiff
path: root/python/highlevelil.py
diff options
context:
space:
mode:
authorAlexander Taylor <alex@vector35.com>2024-07-24 17:17:45 -0400
committerAlexander Taylor <alex@vector35.com>2024-07-24 17:17:45 -0400
commit6dee35541be6669d2d783bea37e0f230b10ade23 (patch)
tree6b99fb0012ff62b0f449d809b9405c8a097be57f /python/highlevelil.py
parentceeef1fe56d3f2aae280497810dc6860d1e483c5 (diff)
Remove deprecated API functions.
Diffstat (limited to 'python/highlevelil.py')
-rw-r--r--python/highlevelil.py25
1 files changed, 2 insertions, 23 deletions
diff --git a/python/highlevelil.py b/python/highlevelil.py
index 27a38b2b..48cbd6cc 100644
--- a/python/highlevelil.py
+++ b/python/highlevelil.py
@@ -2400,25 +2400,6 @@ ILInstruction = {
}
-class HighLevelILExpr:
- """
- ``class HighLevelILExpr`` hold the index of IL Expressions.
-
- .. note:: Use ExpressionIndex instead
- """
-
- @deprecation.deprecated(deprecated_in="3.4.3997", details='Use ExpressionIndex instead')
- def __init__(self, index: ExpressionIndex):
- self._index = index
-
- def __int__(self):
- return self._index
-
- @property
- def index(self) -> ExpressionIndex:
- return self._index
-
-
class HighLevelILFunction:
"""
``class HighLevelILFunction`` contains the a HighLevelILInstruction object that makes up the abstract syntax tree of
@@ -2478,11 +2459,9 @@ class HighLevelILFunction:
def __len__(self):
return int(core.BNGetHighLevelILInstructionCount(self.handle))
- def __getitem__(self, i: Union[HighLevelILExpr, int]) -> HighLevelILInstruction:
+ def __getitem__(self, i: int) -> HighLevelILInstruction:
if isinstance(i, slice) or isinstance(i, tuple):
- raise IndexError("expected integer instruction index")
- if isinstance(i, HighLevelILExpr):
- return HighLevelILInstruction.create(self, i.index)
+ raise IndexError("expected integer index")
if i < -len(self) or i >= len(self):
raise IndexError("index out of range")
if i < 0: