From ea4cfdfef205194674fa9cb1beda4eaa56fd1fb8 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Tue, 3 Mar 2015 04:04:16 -0500 Subject: Don't store instruction size list as it can be easily regenerated --- basicblock.cpp | 13 ------------- binaryninjaapi.h | 1 - 2 files changed, 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 BasicBlock::GetInstructionSizes() const -{ - size_t count; - uint8_t* array = BNGetBasicBlockInstructionSizes(m_block, &count); - - vector result; - result.insert(result.end(), &array[0], &array[count]); - - BNFreeBasicBlockInstructionSizeList(array); - return result; -} - - vector 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 GetInstructionSizes() const; std::vector GetOutgoingEdges() const; }; -- cgit v1.3.1