No need to check for typedef since it's checked elsewhere

This commit is contained in:
de4dot 2011-11-03 18:52:21 +01:00
parent cd7e617ab7
commit 555ca393e2

View File

@ -40,8 +40,6 @@ namespace de4dot.blocks {
}
public TypeDefinition lookup(TypeReference typeReference) {
if (typeReference is TypeDefinition)
return (TypeDefinition)typeReference;
TypeDefinition typeDefinition;
typeRefToDef.TryGetValue(new TypeReferenceKey(typeReference), out typeDefinition);
return typeDefinition;
@ -65,8 +63,6 @@ namespace de4dot.blocks {
}
public TypeDefinition lookup(ModuleDefinition module, TypeReference typeReference) {
if (typeReference is TypeDefinition)
return (TypeDefinition)typeReference;
TypeCache typeCache;
if (!typeCaches.TryGetValue(module, out typeCache))
typeCaches[module] = typeCache = new TypeCache(module);