diff --git a/Assets/Mirror/Editor/Weaver/Processors/CommandProcessor.cs b/Assets/Mirror/Editor/Weaver/Processors/CommandProcessor.cs index 178303ab1..8e464f01e 100644 --- a/Assets/Mirror/Editor/Weaver/Processors/CommandProcessor.cs +++ b/Assets/Mirror/Editor/Weaver/Processors/CommandProcessor.cs @@ -41,12 +41,6 @@ public static MethodDefinition ProcessCommandCall(TypeDefinition td, MethodDefin NetworkBehaviourProcessor.WriteSetupLocals(worker); - if (Weaver.GenerateLogErrors) - { - worker.Append(worker.Create(OpCodes.Ldstr, "Call Command function " + md.Name)); - worker.Append(worker.Create(OpCodes.Call, Weaver.logErrorReference)); - } - // NetworkWriter writer = new NetworkWriter(); NetworkBehaviourProcessor.WriteCreateWriter(worker); @@ -55,12 +49,6 @@ public static MethodDefinition ProcessCommandCall(TypeDefinition td, MethodDefin return null; string cmdName = md.Name; - int index = cmdName.IndexOf(CmdPrefix); - if (index > -1) - { - cmdName = cmdName.Substring(CmdPrefix.Length); - } - int channel = commandAttr.GetField("channel", 0); bool ignoreAuthority = commandAttr.GetField("ignoreAuthority", false); diff --git a/Assets/Mirror/Editor/Weaver/Processors/RpcProcessor.cs b/Assets/Mirror/Editor/Weaver/Processors/RpcProcessor.cs index aee473d2a..b00ae11d3 100644 --- a/Assets/Mirror/Editor/Weaver/Processors/RpcProcessor.cs +++ b/Assets/Mirror/Editor/Weaver/Processors/RpcProcessor.cs @@ -81,12 +81,6 @@ public static MethodDefinition ProcessRpcCall(TypeDefinition td, MethodDefinitio return null; string rpcName = md.Name; - int index = rpcName.IndexOf(RpcPrefix); - if (index > -1) - { - rpcName = rpcName.Substring(RpcPrefix.Length); - } - int channel = clientRpcAttr.GetField("channel", 0); bool excludeOwner = clientRpcAttr.GetField("excludeOwner", false); diff --git a/Assets/Mirror/Editor/Weaver/Processors/TargetRpcProcessor.cs b/Assets/Mirror/Editor/Weaver/Processors/TargetRpcProcessor.cs index 357cb45cf..df650ccab 100644 --- a/Assets/Mirror/Editor/Weaver/Processors/TargetRpcProcessor.cs +++ b/Assets/Mirror/Editor/Weaver/Processors/TargetRpcProcessor.cs @@ -103,11 +103,6 @@ public static MethodDefinition ProcessTargetRpcCall(TypeDefinition td, MethodDef return null; string rpcName = md.Name; - int index = rpcName.IndexOf(TargetRpcPrefix); - if (index > -1) - { - rpcName = rpcName.Substring(TargetRpcPrefix.Length); - } // invoke SendInternal and return // this