Weaver: removed unused MakeGenericType function

This commit is contained in:
vis2k 2018-12-31 00:14:32 +01:00
parent 97a30e9599
commit 0ee375215b

View File

@ -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;
}
}
}