diff --git a/Assets/Mirror/Editor/Weaver/Processors/PropertySiteProcessor.cs b/Assets/Mirror/Editor/Weaver/Processors/PropertySiteProcessor.cs index ab657e8ef..ff356f8f8 100644 --- a/Assets/Mirror/Editor/Weaver/Processors/PropertySiteProcessor.cs +++ b/Assets/Mirror/Editor/Weaver/Processors/PropertySiteProcessor.cs @@ -22,17 +22,6 @@ public static void Process(ModuleDefinition moduleDef) if (Weaver.WeaveLists.generateContainerClass != null) { moduleDef.Types.Add(Weaver.WeaveLists.generateContainerClass); - moduleDef.ImportReference(Weaver.WeaveLists.generateContainerClass); - - foreach (MethodDefinition f in Weaver.WeaveLists.generatedReadFunctions) - { - moduleDef.ImportReference(f); - } - - foreach (MethodDefinition f in Weaver.WeaveLists.generatedWriteFunctions) - { - moduleDef.ImportReference(f); - } } Console.WriteLine(" ProcessSitesModule " + moduleDef.Name + " elapsed time:" + (DateTime.Now - startTime)); diff --git a/Assets/Mirror/Editor/Weaver/Readers.cs b/Assets/Mirror/Editor/Weaver/Readers.cs index 149a61986..6ff6c1aab 100644 --- a/Assets/Mirror/Editor/Weaver/Readers.cs +++ b/Assets/Mirror/Editor/Weaver/Readers.cs @@ -98,7 +98,6 @@ public static MethodReference GetReadFunc(TypeReference variableReference) static void RegisterReadFunc(TypeReference typeReference, MethodDefinition newReaderFunc) { readFuncs[typeReference.FullName] = newReaderFunc; - Weaver.WeaveLists.generatedReadFunctions.Add(newReaderFunc); Weaver.WeaveLists.ConfirmGeneratedCodeClass(); Weaver.WeaveLists.generateContainerClass.Methods.Add(newReaderFunc); diff --git a/Assets/Mirror/Editor/Weaver/Weaver.cs b/Assets/Mirror/Editor/Weaver/Weaver.cs index a695bf92c..18269b7ec 100644 --- a/Assets/Mirror/Editor/Weaver/Weaver.cs +++ b/Assets/Mirror/Editor/Weaver/Weaver.cs @@ -14,9 +14,6 @@ class WeaverLists // getter functions that replace [SyncVar] member variable references. dict public Dictionary replacementGetterProperties = new Dictionary(); - public List generatedReadFunctions = new List(); - public List generatedWriteFunctions = new List(); - public TypeDefinition generateContainerClass; // amount of SyncVars per class. dict diff --git a/Assets/Mirror/Editor/Weaver/Writers.cs b/Assets/Mirror/Editor/Weaver/Writers.cs index 06c45cdbe..f6a91b1b1 100644 --- a/Assets/Mirror/Editor/Weaver/Writers.cs +++ b/Assets/Mirror/Editor/Weaver/Writers.cs @@ -22,7 +22,6 @@ public static void Register(TypeReference dataType, MethodReference methodRefere static void RegisterWriteFunc(TypeReference typeReference, MethodDefinition newWriterFunc) { writeFuncs[typeReference.FullName] = newWriterFunc; - Weaver.WeaveLists.generatedWriteFunctions.Add(newWriterFunc); Weaver.WeaveLists.ConfirmGeneratedCodeClass(); Weaver.WeaveLists.generateContainerClass.Methods.Add(newWriterFunc);