From 3ee178abe7d243bd266a64a015da3b5c4cfb8a2c Mon Sep 17 00:00:00 2001 From: degasus Date: Wed, 11 Jan 2017 20:27:01 +0100 Subject: [PATCH] JitCache: Drop unused functions. --- Source/Core/Core/PowerPC/JitCommon/JitCache.cpp | 12 +----------- Source/Core/Core/PowerPC/JitCommon/JitCache.h | 2 -- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/Source/Core/Core/PowerPC/JitCommon/JitCache.cpp b/Source/Core/Core/PowerPC/JitCommon/JitCache.cpp index 1f825fa9ec..559c082b98 100644 --- a/Source/Core/Core/PowerPC/JitCommon/JitCache.cpp +++ b/Source/Core/Core/PowerPC/JitCommon/JitCache.cpp @@ -96,12 +96,7 @@ void JitBaseBlockCache::SchedulateClearCacheThreadSafe() bool JitBaseBlockCache::IsFull() const { - return GetNumBlocks() >= MAX_NUM_BLOCKS - 1; -} - -JitBlock* JitBaseBlockCache::GetBlock(int no) -{ - return &blocks[no]; + return num_blocks >= MAX_NUM_BLOCKS - 1; } JitBlock* JitBaseBlockCache::GetBlocks() @@ -109,11 +104,6 @@ JitBlock* JitBaseBlockCache::GetBlocks() return blocks.data(); } -int JitBaseBlockCache::GetNumBlocks() const -{ - return num_blocks; -} - int* JitBaseBlockCache::GetICache() { return iCache.data(); diff --git a/Source/Core/Core/PowerPC/JitCommon/JitCache.h b/Source/Core/Core/PowerPC/JitCommon/JitCache.h index 781fb596f4..6e8e8fa6f9 100644 --- a/Source/Core/Core/PowerPC/JitCommon/JitCache.h +++ b/Source/Core/Core/PowerPC/JitCommon/JitCache.h @@ -127,9 +127,7 @@ public: bool IsFull() const; // Code Cache - JitBlock* GetBlock(int block_num); JitBlock* GetBlocks(); - int GetNumBlocks() const; int* GetICache(); void RunOnBlocks(std::function f);