From 3928966f81e2841d183826c43136f323aab2ac25 Mon Sep 17 00:00:00 2001 From: Yoshi Askharoun Date: Tue, 6 Feb 2024 12:56:31 -0600 Subject: [PATCH] Remove unsused Instruction factories --- libs/UIX.Asm/Models/Instructions.cs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/libs/UIX.Asm/Models/Instructions.cs b/libs/UIX.Asm/Models/Instructions.cs index dd32e47..2db36db 100644 --- a/libs/UIX.Asm/Models/Instructions.cs +++ b/libs/UIX.Asm/Models/Instructions.cs @@ -31,20 +31,6 @@ public record Instruction(string Mnemonic, IEnumerable Operands) : Body : mnemonic; } - public static Instruction CreateParamless(OpCode opCode) => new(opCode, Array.Empty()); - - public static Instruction CreateUInt16(OpCode opCode, ushort operand1) - => new(opCode, [new(operand1, OperandDataType.UInt16)]); - - public static Instruction CreateUInt32(OpCode opCode, uint operand1) - => new(opCode, [new(operand1, OperandDataType.UInt32)]); - - public static Instruction CreateInt32(OpCode opCode, int operand1) - => new(opCode, [new(operand1, OperandDataType.Int32)]); - - public static Instruction CreateUInt16UInt16(OpCode opCode, ushort operand1, ushort operand2) - => new(opCode, [new(operand1, OperandDataType.UInt16), new(operand2, OperandDataType.UInt16)]); - public static Instruction CreateWithSchema(OpCode opCode, params object[] operands) { var schema = InstructionSet.InstructionSchema[opCode];