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
be81fe86e1.
This commit is contained in:
Dentomologist
2026-01-17 14:34:16 -08:00
parent 8a606fca88
commit 3424983a65

View File

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