diff --git a/de4dot.code/deobfuscators/ConstantsReader.cs b/de4dot.code/deobfuscators/ConstantsReader.cs index c1c40002..5ffe6e9f 100644 --- a/de4dot.code/deobfuscators/ConstantsReader.cs +++ b/de4dot.code/deobfuscators/ConstantsReader.cs @@ -52,7 +52,6 @@ namespace de4dot.code.deobfuscators { } } -#if PORT class ListInstrs : IInstructions { IList instrs; @@ -68,7 +67,6 @@ namespace de4dot.code.deobfuscators { this.instrs = instrs; } } -#endif public bool EmulateConvInstructions { get { return emulateConvInstrs; } @@ -92,7 +90,6 @@ namespace de4dot.code.deobfuscators { : this(new ListInstructions(instrs), emulateConvInstrs) { } -#if PORT public ConstantsReader(IList instrs) : this(new ListInstrs(instrs)) { } @@ -100,19 +97,16 @@ namespace de4dot.code.deobfuscators { public ConstantsReader(IList instrs, bool emulateConvInstrs) : this(new ListInstrs(instrs), emulateConvInstrs) { } -#endif public ConstantsReader(MethodDef method) : this(method.CilBody.Instructions) { this.locals = method.CilBody.LocalList; } -#if PORT public ConstantsReader(IList instrs, IList locals) : this(instrs) { this.locals = locals; } -#endif public void setConstantInt32(Local local, int value) { localsValuesInt32[local] = value; diff --git a/de4dot.cui/FilesDeobfuscator.cs b/de4dot.cui/FilesDeobfuscator.cs index 893014de..4d8eb304 100644 --- a/de4dot.cui/FilesDeobfuscator.cs +++ b/de4dot.cui/FilesDeobfuscator.cs @@ -23,9 +23,7 @@ using System.Collections.Generic; using dot10.DotNet; using de4dot.blocks; using de4dot.code; -#if PORT using de4dot.code.renamer; -#endif using de4dot.code.deobfuscators; using de4dot.code.AssemblyClient; @@ -359,13 +357,11 @@ namespace de4dot.cui { void rename(IEnumerable theFiles) { if (!options.RenameSymbols) return; -#if PORT var renamer = new Renamer(deobfuscatorContext, theFiles) { RestorePropertiesFromNames = options.RestorePropsEvents, RestoreEventsFromNames = options.RestorePropsEvents, }; renamer.rename(); -#endif } } }