Weaver: remove unused MemoryStreamType and Ctor

This commit is contained in:
vis2k 2019-01-01 15:34:04 +01:00
parent d31ad60a59
commit d928817a3d

View File

@ -68,8 +68,6 @@ class Weaver
public static MethodReference NetworkWriterCtor;
public static MethodReference NetworkReaderCtor;
public static TypeReference MemoryStreamType;
public static MethodReference MemoryStreamCtor;
public static MethodReference getComponentReference;
public static MethodReference getUNetIdReference;
public static TypeReference NetworkIdentityType;
@ -1283,7 +1281,6 @@ static void SetupTargetTypes()
valueTypeType = ImportCorLibType("System.ValueType");
typeType = ImportCorLibType("System.Type");
IEnumeratorType = ImportCorLibType("System.Collections.IEnumerator");
MemoryStreamType = ImportCorLibType("System.IO.MemoryStream");
guidType = ImportCorLibType("System.Guid");
NetworkReaderType = m_UNetAssemblyDefinition.MainModule.GetType("Mirror.NetworkReader");
@ -1296,8 +1293,6 @@ static void SetupTargetTypes()
NetworkWriterCtor = ResolveMethod(NetworkWriterDef, ".ctor");
MemoryStreamCtor = ResolveMethod(MemoryStreamType, ".ctor");
NetworkServerGetActive = ResolveMethod(NetworkServerType, "get_active");
NetworkServerGetLocalClientActive = ResolveMethod(NetworkServerType, "get_localClientActive");
NetworkClientGetActive = ResolveMethod(NetworkClientType, "get_active");