From 3424983a6563087ea42d1cf8e9ff4ebfb917bf4c Mon Sep 17 00:00:00 2001 From: Dentomologist Date: Sat, 17 Jan 2026 14:34:16 -0800 Subject: [PATCH] JitRegister: Remove redundant check for open file The check only happened if `USE_VTUNE` wasn't defined, and in that case it was immediately followed by the same check again. The check used to avoid an unnecessary call to `StringFromFormatV` in certain circumstances, but that call was removed in be81fe86e19e3afc70fc9190fd8f5f18f906c0eb. --- Source/Core/Common/JitRegister.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Source/Core/Common/JitRegister.cpp b/Source/Core/Common/JitRegister.cpp index 8e3211182f..053c411a93 100644 --- a/Source/Core/Common/JitRegister.cpp +++ b/Source/Core/Common/JitRegister.cpp @@ -65,11 +65,6 @@ bool IsEnabled() void Register(const void* base_address, u32 code_size, const std::string& symbol_name) { -#ifndef USE_VTUNE - if (!s_perf_map_file.IsOpen()) - return; -#endif - #ifdef USE_VTUNE iJIT_Method_Load jmethod = {0}; jmethod.method_id = iJIT_GetNewMethodID();