remove old code

This commit is contained in:
vis2k 2022-01-18 17:12:33 +08:00
parent 45438b5e91
commit 3792e23f2f

View File

@ -1199,16 +1199,6 @@ void ProcessCommand(HashSet<string> names, MethodDefinition md, CustomAttribute
if (!ValidateRemoteCallAndParameters(md, RemoteCallType.Command, ref WeavingFailed))
return;
// multiple commands of same name with different parameteres are now
// supported because we register them with md.FullName like:
// "System.Void Mirror.Tests.RemoteAttrributeTest.AuthorityBehaviour::SendInt(System.Int32)"
//if (names.Contains(md.Name))
//{
// Log.Error($"Duplicate Command name {md.Name}", md);
// WeavingFailed = true;
// return;
//}
bool requiresAuthority = commandAttr.GetField("requiresAuthority", true);
names.Add(md.Name);