diff --git a/MobileGL/MG_Util/ShaderTranspiler/TranslationCache.h b/MobileGL/MG_Util/ShaderTranspiler/TranslationCache.h index 52fdde17..65235e72 100644 --- a/MobileGL/MG_Util/ShaderTranspiler/TranslationCache.h +++ b/MobileGL/MG_Util/ShaderTranspiler/TranslationCache.h @@ -288,19 +288,6 @@ namespace MobileGL::MG_Util::ShaderTranspiler { static_cast(stats.duplicateInserts), EntryCount(), StoredBytes() / 1024u); } - // Tests only: makes the caps small enough to exercise eviction without - // building megabytes of shaders. Clears the cache, because shrinking the - // caps under live entries would otherwise leave it over budget. - void SetCapsForTesting(SizeT maxEntries, SizeT maxBytes) { - const std::lock_guard lock(m_mutex); - m_maxEntries = maxEntries; - m_maxBytes = maxBytes; - m_index.clear(); - m_entries.clear(); - m_storedBytes = 0; - m_stats = {}; - } - private: struct Entry { TranslationCacheKey key;