mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Weaver: removed unused MakeGenericType function
This commit is contained in:
parent
97a30e9599
commit
0ee375215b
@ -140,17 +140,5 @@ public static WriterParameters GetWriterParameters(ReaderParameters readParams)
|
||||
}
|
||||
return writeParams;
|
||||
}
|
||||
|
||||
public static TypeReference MakeGenericType(TypeReference self, params TypeReference[] arguments)
|
||||
{
|
||||
if (self.GenericParameters.Count != arguments.Length)
|
||||
throw new ArgumentException();
|
||||
|
||||
var instance = new GenericInstanceType(self);
|
||||
foreach (var argument in arguments)
|
||||
instance.GenericArguments.Add(argument);
|
||||
|
||||
return instance;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user