diff --git a/de4dot.code/deobfuscators/DeobfuscatorBase.cs b/de4dot.code/deobfuscators/DeobfuscatorBase.cs index cec7255b..ed7453a7 100644 --- a/de4dot.code/deobfuscators/DeobfuscatorBase.cs +++ b/de4dot.code/deobfuscators/DeobfuscatorBase.cs @@ -638,8 +638,11 @@ namespace de4dot.code.deobfuscators { public virtual void OnBeforeAddingResources(MetadataBuilder builder) { } - public void findAndRemoveInlinedMethods() { - var inlinedMethods = InlinedMethodsFinder.find(module); + protected void findAndRemoveInlinedMethods() { + removeInlinedMethods(InlinedMethodsFinder.find(module)); + } + + protected void removeInlinedMethods(List inlinedMethods) { addMethodsToBeRemoved(new UnusedMethodsFinder(module, inlinedMethods, getRemovedMethods()).find(), "Inlined method"); }