diff --git a/Mirror/Weaver/Helpers.cs b/Mirror/Weaver/Helpers.cs index 7d1a328f5..59021b5fb 100644 --- a/Mirror/Weaver/Helpers.cs +++ b/Mirror/Weaver/Helpers.cs @@ -152,24 +152,5 @@ public static TypeReference MakeGenericType(TypeReference self, params TypeRefer return instance; } - - // used to get a specialized method on a generic class, such as SyncList::HandleMsg() - public static MethodReference MakeHostInstanceGeneric(MethodReference self, params TypeReference[] arguments) - { - var reference = new MethodReference(self.Name, self.ReturnType, MakeGenericType(self.DeclaringType, arguments)) - { - HasThis = self.HasThis, - ExplicitThis = self.ExplicitThis, - CallingConvention = self.CallingConvention - }; - - foreach (var parameter in self.Parameters) - reference.Parameters.Add(new ParameterDefinition(parameter.ParameterType)); - - foreach (var genericParameter in self.GenericParameters) - reference.GenericParameters.Add(new GenericParameter(genericParameter.Name, reference)); - - return reference; - } } }