From 0d11af0d86b276bc0db0b1dcab06c944cbffd330 Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Sun, 18 Oct 2026 08:00:47 -0400 Subject: [PATCH] [Refactor] (MG_Util/ShaderTranspiler): delete the uncalled TranslationCache::SetCapsForTesting --- .../MG_Util/ShaderTranspiler/TranslationCache.h | 13 ------------- 1 file changed, 13 deletions(-) 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;