diff --git a/ICSharpCode.Decompiler/IL/Instructions.cs b/ICSharpCode.Decompiler/IL/Instructions.cs index c80ce9b5a..41a0f7a14 100644 --- a/ICSharpCode.Decompiler/IL/Instructions.cs +++ b/ICSharpCode.Decompiler/IL/Instructions.cs @@ -4304,17 +4304,6 @@ namespace ICSharpCode.Decompiler.IL } } - partial class BinaryComparisonInstruction - { - public static BinaryComparisonInstruction Create(OpCode opCode, ILInstruction left, ILInstruction right) - { - switch (opCode) { - default: - throw new ArgumentException("opCode is not a binary comparison instruction"); - } - } - } - partial class InstructionOutputExtensions { static readonly string[] originalOpCodeNames = { diff --git a/ICSharpCode.Decompiler/IL/Instructions.tt b/ICSharpCode.Decompiler/IL/Instructions.tt index 044986c1b..90d9ed8d5 100644 --- a/ICSharpCode.Decompiler/IL/Instructions.tt +++ b/ICSharpCode.Decompiler/IL/Instructions.tt @@ -329,21 +329,6 @@ namespace ICSharpCode.Decompiler.IL <# } #> } - partial class BinaryComparisonInstruction - { - public static BinaryComparisonInstruction Create(OpCode opCode, ILInstruction left, ILInstruction right) - { - switch (opCode) { -<# foreach (OpCode opCode in opCodes.Where(c => c.BaseClass == "BinaryComparisonInstruction")) { #> - case OpCode.<#=opCode.Name#>: - return new <#=opCode.Name#>(left, right); -<# } #> - default: - throw new ArgumentException("opCode is not a binary comparison instruction"); - } - } - } - partial class InstructionOutputExtensions { static readonly string[] originalOpCodeNames = {