diff options
| author | Jordan Wiens <jordan@psifertex.com> | 2019-08-04 22:52:47 -0400 |
|---|---|---|
| committer | Jordan Wiens <jordan@psifertex.com> | 2019-08-04 22:52:47 -0400 |
| commit | 44cf4311014c0d16a6e809117dcb06400e023da1 (patch) | |
| tree | edd6fa4691e8229780eff3271e9e7af4e063b878 /python | |
| parent | faab567391ddee9951e85975e9621cc66c128dcb (diff) | |
remove .size on function
Diffstat (limited to 'python')
| -rw-r--r-- | python/function.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/python/function.py b/python/function.py index 1ac95fb6..0bbd0a99 100644 --- a/python/function.py +++ b/python/function.py @@ -849,11 +849,6 @@ class Function(object): return core.BNGetFunctionStart(self.handle) @property - def size(self): - """This property is not implemented as its implementation is not well defined. Use `.total_bytes` or `.highest_address-.lowest_address` instead""" - raise NotImplementedError("Intentionally unimplemented--use .total_bytes or .highest_address-.lowest_address.") - - @property def total_bytes(self): """Total bytes of a function calculated by summing each basic_block. Because basic blocks can overlap and have gaps between them this may or may not be equivalent to a .size property.""" return sum(map(len, self)) |
