diff --git a/Mirror/Weaver/UNetBehaviourProcessor.cs b/Mirror/Weaver/UNetBehaviourProcessor.cs index 97e707bdb..c6de2ef1c 100644 --- a/Mirror/Weaver/UNetBehaviourProcessor.cs +++ b/Mirror/Weaver/UNetBehaviourProcessor.cs @@ -113,15 +113,6 @@ static void WriteCreateWriter(ILProcessor worker) worker.Append(worker.Create(OpCodes.Stloc_0)); } - static void WriteMessageId(ILProcessor worker, int msgId) - { - // write msg id - worker.Append(worker.Create(OpCodes.Ldloc_0)); // load 'writer.' - worker.Append(worker.Create(OpCodes.Ldc_I4, msgId)); - worker.Append(worker.Create(OpCodes.Conv_U2)); - worker.Append(worker.Create(OpCodes.Callvirt, Weaver.NetworkWriterWriteInt16)); - } - static bool WriteArguments(ILProcessor worker, MethodDefinition md, string errString, bool skipFirst) { // write each argument