diff --git a/blocks/DotNetUtils.cs b/blocks/DotNetUtils.cs index efe15591..a4d04fa6 100644 --- a/blocks/DotNetUtils.cs +++ b/blocks/DotNetUtils.cs @@ -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);