diff --git a/Mirror/Weaver/Weaver.cs b/Mirror/Weaver/Weaver.cs index 0302f7dc1..731eca985 100644 --- a/Mirror/Weaver/Weaver.cs +++ b/Mirror/Weaver/Weaver.cs @@ -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");