Remove unused ObjectCreator constructor.

This commit is contained in:
Paul Chote
2017-04-24 23:29:08 +01:00
parent 8dd50c0421
commit a01b3f88fc

View File

@@ -29,13 +29,6 @@ namespace OpenRA
readonly Pair<Assembly, string>[] assemblies; readonly Pair<Assembly, string>[] assemblies;
readonly bool isMonoRuntime = Type.GetType("Mono.Runtime") != null; readonly bool isMonoRuntime = Type.GetType("Mono.Runtime") != null;
public ObjectCreator(Assembly a)
{
typeCache = new Cache<string, Type>(FindType);
ctorCache = new Cache<Type, ConstructorInfo>(GetCtor);
assemblies = a.GetNamespaces().Select(ns => Pair.New(a, ns)).ToArray();
}
public ObjectCreator(Manifest manifest, FileSystem.FileSystem modFiles) public ObjectCreator(Manifest manifest, FileSystem.FileSystem modFiles)
{ {
typeCache = new Cache<string, Type>(FindType); typeCache = new Cache<string, Type>(FindType);