No need to check for typedef since it's checked elsewhere
This commit is contained in:
parent
cd7e617ab7
commit
555ca393e2
|
@ -40,8 +40,6 @@ namespace de4dot.blocks {
|
||||||
}
|
}
|
||||||
|
|
||||||
public TypeDefinition lookup(TypeReference typeReference) {
|
public TypeDefinition lookup(TypeReference typeReference) {
|
||||||
if (typeReference is TypeDefinition)
|
|
||||||
return (TypeDefinition)typeReference;
|
|
||||||
TypeDefinition typeDefinition;
|
TypeDefinition typeDefinition;
|
||||||
typeRefToDef.TryGetValue(new TypeReferenceKey(typeReference), out typeDefinition);
|
typeRefToDef.TryGetValue(new TypeReferenceKey(typeReference), out typeDefinition);
|
||||||
return typeDefinition;
|
return typeDefinition;
|
||||||
|
@ -65,8 +63,6 @@ namespace de4dot.blocks {
|
||||||
}
|
}
|
||||||
|
|
||||||
public TypeDefinition lookup(ModuleDefinition module, TypeReference typeReference) {
|
public TypeDefinition lookup(ModuleDefinition module, TypeReference typeReference) {
|
||||||
if (typeReference is TypeDefinition)
|
|
||||||
return (TypeDefinition)typeReference;
|
|
||||||
TypeCache typeCache;
|
TypeCache typeCache;
|
||||||
if (!typeCaches.TryGetValue(module, out typeCache))
|
if (!typeCaches.TryGetValue(module, out typeCache))
|
||||||
typeCaches[module] = typeCache = new TypeCache(module);
|
typeCaches[module] = typeCache = new TypeCache(module);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user