From 702b1830340b7153183097c65c00bd855c9ac988 Mon Sep 17 00:00:00 2001 From: Paul Pacheco Date: Fri, 30 Aug 2019 21:49:26 -0500 Subject: [PATCH] Removed more unused variables --- Assets/Mirror/Editor/Weaver/Weaver.cs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Assets/Mirror/Editor/Weaver/Weaver.cs b/Assets/Mirror/Editor/Weaver/Weaver.cs index 06620cf60..ff6b33134 100644 --- a/Assets/Mirror/Editor/Weaver/Weaver.cs +++ b/Assets/Mirror/Editor/Weaver/Weaver.cs @@ -66,8 +66,6 @@ class Weaver public static TypeReference NetworkWriterType; - public static MethodReference NetworkWriterCtor; - public static MethodReference NetworkReaderCtor; public static MethodReference getComponentReference; public static MethodReference getNetIdReference; public static TypeReference NetworkIdentityType; @@ -300,14 +298,7 @@ static void SetupTargetTypes() NetworkReaderType = NetAssembly.MainModule.GetType("Mirror.NetworkReader"); - TypeDefinition NetworkReaderDef = NetworkReaderType.Resolve(); - - NetworkReaderCtor = Resolvers.ResolveMethod(NetworkReaderDef, CurrentAssembly, ".ctor"); - NetworkWriterType = NetAssembly.MainModule.GetType("Mirror.NetworkWriter"); - TypeDefinition NetworkWriterDef = NetworkWriterType.Resolve(); - - NetworkWriterCtor = Resolvers.ResolveMethod(NetworkWriterDef, CurrentAssembly, ".ctor"); NetworkServerGetActive = Resolvers.ResolveMethod(NetworkServerType, CurrentAssembly, "get_active"); NetworkServerGetLocalClientActive = Resolvers.ResolveMethod(NetworkServerType, CurrentAssembly, "get_localClientActive");