mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Weaver: removed unused MakeHostInstanceGeneric function
This commit is contained in:
parent
ac2361611b
commit
97a30e9599
@ -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<T>::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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user