删除CallObfusPass中无用代码

dev
walon 2025-06-26 17:28:30 +08:00
parent 95b789deb2
commit ac9c96b4b9
1 changed files with 0 additions and 29 deletions

View File

@ -62,35 +62,6 @@ namespace Obfuz.ObfusPasses.CallObfus
"System.Reflection.Assembly.GetEntryAssembly", "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) private bool ComputeIsInWhiteList(IMethod calledMethod)
{ {
MethodDef calledMethodDef = calledMethod.ResolveMethodDef(); MethodDef calledMethodDef = calledMethod.ResolveMethodDef();