JitCache: Drop unused functions.

This commit is contained in:
degasus 2017-01-11 20:27:01 +01:00
parent 7e850361fb
commit 3ee178abe7
2 changed files with 1 additions and 13 deletions

View File

@ -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();

View File

@ -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<void(const JitBlock&)> f);