From ac9c96b4b9a630d98fe0c7cd1149bbabe65f1973 Mon Sep 17 00:00:00 2001 From: walon Date: Thu, 26 Jun 2025 17:28:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4CallObfusPass=E4=B8=AD?= =?UTF-8?q?=E6=97=A0=E7=94=A8=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Editor/ObfusPasses/CallObfus/CallObfusPass.cs | 29 ------------------- 1 file changed, 29 deletions(-) diff --git a/Editor/ObfusPasses/CallObfus/CallObfusPass.cs b/Editor/ObfusPasses/CallObfus/CallObfusPass.cs index 8cc37dc..7786450 100644 --- a/Editor/ObfusPasses/CallObfus/CallObfusPass.cs +++ b/Editor/ObfusPasses/CallObfus/CallObfusPass.cs @@ -62,35 +62,6 @@ namespace Obfuz.ObfusPasses.CallObfus "System.Reflection.Assembly.GetEntryAssembly", }; - private bool IsSpecialNotObfuscatedMethod(TypeDef typeDef, IMethod method) - { - if (typeDef.IsDelegate || typeDef.IsEnum) - return true; - - string fullName = typeDef.FullName; - if (_specialTypeFullNames.Contains(fullName)) - { - return true; - } - //if (fullName.StartsWith("System.Runtime.CompilerServices.")) - //{ - // return true; - //} - - string methodName = method.Name; - if (_specialMethodNames.Contains(methodName)) - { - return true; - } - - string methodFullName = $"{fullName}.{methodName}"; - if (_specialMethodFullNames.Contains(methodFullName)) - { - return true; - } - return false; - } - private bool ComputeIsInWhiteList(IMethod calledMethod) { MethodDef calledMethodDef = calledMethod.ResolveMethodDef();