Remove unused methods, and inline method used only by SA code

This commit is contained in:
de4dot 2011-11-02 02:25:45 +01:00
parent ade1720d32
commit 8ff2115083
2 changed files with 1 additions and 9 deletions

View File

@ -488,14 +488,6 @@ namespace de4dot.deobfuscators {
addTypesToBeRemoved(proxyDelegateFinder.DelegateCreatorTypes, "Proxy delegate creator type"); addTypesToBeRemoved(proxyDelegateFinder.DelegateCreatorTypes, "Proxy delegate creator type");
} }
protected TypeDefinition getModuleType() {
return DotNetUtils.getModuleType(module);
}
protected TypeDefinition getType(TypeReference typeReference) {
return DotNetUtils.getType(module, typeReference);
}
protected Resource getResource(IEnumerable<string> strings) { protected Resource getResource(IEnumerable<string> strings) {
return DotNetUtils.getResource(module, strings); return DotNetUtils.getResource(module, strings);
} }

View File

@ -257,7 +257,7 @@ namespace de4dot.deobfuscators.SmartAssembly {
} }
bool hasModuleCctor() { bool hasModuleCctor() {
var type = getModuleType(); var type = DotNetUtils.getModuleType(module);
if (type == null) if (type == null)
return false; return false;
return DotNetUtils.getMethod(type, ".cctor") != null; return DotNetUtils.getMethod(type, ".cctor") != null;