Removed unused fields

This commit is contained in:
Paul Pacheco 2019-06-20 08:25:42 -05:00
parent 072a049bfa
commit 1a26c78059

View File

@ -93,9 +93,6 @@ class Weaver
public static MethodReference NetworkWriterWritePackedInt32; public static MethodReference NetworkWriterWritePackedInt32;
public static MethodReference NetworkReaderReadPackedUInt64; public static MethodReference NetworkReaderReadPackedUInt64;
public static MethodReference NetworkReadUInt16;
public static MethodReference NetworkWriteUInt16;
// custom attribute types // custom attribute types
public static TypeReference SyncVarType; public static TypeReference SyncVarType;
public static TypeReference CommandType; public static TypeReference CommandType;
@ -318,10 +315,6 @@ static void SetupTargetTypes()
NetworkWriterWritePackedInt32 = Resolvers.ResolveMethod(NetworkWriterType, CurrentAssembly, "WritePackedInt32"); NetworkWriterWritePackedInt32 = Resolvers.ResolveMethod(NetworkWriterType, CurrentAssembly, "WritePackedInt32");
NetworkWriterWritePackedUInt64 = Resolvers.ResolveMethod(NetworkWriterType, CurrentAssembly, "WritePackedUInt64"); NetworkWriterWritePackedUInt64 = Resolvers.ResolveMethod(NetworkWriterType, CurrentAssembly, "WritePackedUInt64");
NetworkReadUInt16 = Resolvers.ResolveMethod(NetworkReaderType, CurrentAssembly, "ReadUInt16");
NetworkWriteUInt16 = Resolvers.ResolveMethodWithArg(NetworkWriterType, CurrentAssembly, "Write", uint16Type);
CmdDelegateReference = NetAssembly.MainModule.GetType("Mirror.NetworkBehaviour/CmdDelegate"); CmdDelegateReference = NetAssembly.MainModule.GetType("Mirror.NetworkBehaviour/CmdDelegate");
CmdDelegateConstructor = Resolvers.ResolveMethod(CmdDelegateReference, CurrentAssembly, ".ctor"); CmdDelegateConstructor = Resolvers.ResolveMethod(CmdDelegateReference, CurrentAssembly, ".ctor");
CurrentAssembly.MainModule.ImportReference(gameObjectType); CurrentAssembly.MainModule.ImportReference(gameObjectType);