From 8e7ced64d61e5580964a67239c297ebc8485366b Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 22 Jun 2024 10:26:15 -0400 Subject: [PATCH] Remove if statement for WebKit2 If there are zero WK2 processes, this function will return anyways. -webKit2Enabled returning NO does not indicate there are zero WK2 views. It just means no more are allowed. --- Sources/Plugins/System Profiler/Classes/TPI_SP_SysInfo.m | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Sources/Plugins/System Profiler/Classes/TPI_SP_SysInfo.m b/Sources/Plugins/System Profiler/Classes/TPI_SP_SysInfo.m index a2dd3e7e2..88a35ece2 100755 --- a/Sources/Plugins/System Profiler/Classes/TPI_SP_SysInfo.m +++ b/Sources/Plugins/System Profiler/Classes/TPI_SP_SysInfo.m @@ -147,10 +147,6 @@ NS_ASSUME_NONNULL_BEGIN + (nullable NSString *)webKitFrameworkMemoryUsage { - if ([TVCLogView webKit2Enabled] == NO) { - return nil; - } - NSArray *webViewProcesses = [TPI_SP_SysInfo webViewProcessIdentifiers]; if (webViewProcesses.count == 0) {