diff options
| author | Rusty Wagner <rusty@vector35.com> | 2015-03-03 04:04:16 -0500 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2015-03-03 04:04:16 -0500 |
| commit | ea4cfdfef205194674fa9cb1beda4eaa56fd1fb8 (patch) | |
| tree | 6e18ae1da20951a7b07322a914cf52ac8b42d44f | |
| parent | e1acceecfd1a9b30a1fa19599dce049b50dfaa36 (diff) | |
Don't store instruction size list as it can be easily regenerated
| -rw-r--r-- | basicblock.cpp | 13 | ||||
| -rw-r--r-- | binaryninjaapi.h | 1 |
2 files changed, 0 insertions, 14 deletions
diff --git a/basicblock.cpp b/basicblock.cpp index 6fc72992..6f308307 100644 --- a/basicblock.cpp +++ b/basicblock.cpp @@ -45,19 +45,6 @@ uint64_t BasicBlock::GetLength() const } -vector<uint8_t> BasicBlock::GetInstructionSizes() const -{ - size_t count; - uint8_t* array = BNGetBasicBlockInstructionSizes(m_block, &count); - - vector<uint8_t> result; - result.insert(result.end(), &array[0], &array[count]); - - BNFreeBasicBlockInstructionSizeList(array); - return result; -} - - vector<BNBasicBlockEdge> BasicBlock::GetOutgoingEdges() const { size_t count; diff --git a/binaryninjaapi.h b/binaryninjaapi.h index d94e7ca7..2c031b89 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -652,7 +652,6 @@ namespace BinaryNinja uint64_t GetEnd() const; uint64_t GetLength() const; - std::vector<uint8_t> GetInstructionSizes() const; std::vector<BNBasicBlockEdge> GetOutgoingEdges() const; }; |
