From: Christoph Egger Date: Mon, 12 Oct 2015 06:16:39 +0000 (+0200) Subject: Remove unused has* from InformationManager X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=commitdiff_plain;h=217321b48c503edd5b35f35158ba68a04d81ecd3 Remove unused has* from InformationManager The only used variant (hasFunction) is used by the disassembler to determine whether to fall back to unsafe heuristics for finding the entry. It is not really obvious why such a thing would ever come up for one of the other types. --- diff --git a/src/core/InformationManager.hxx b/src/core/InformationManager.hxx index f39f6e4..30444ac 100644 --- a/src/core/InformationManager.hxx +++ b/src/core/InformationManager.hxx @@ -56,7 +56,6 @@ public: std::map::const_iterator endFunctions(); BasicBlock* getBasicBlock(uint64_t address); - bool hasBasicBlocks() const {return blocks.size() != 0;} std::map::const_iterator beginBasicBlocks(); std::map::const_iterator endBasicBlocks(); @@ -64,7 +63,6 @@ public: std::multimap::const_iterator, std::multimap::const_iterator> getComments(uint64_t address); - bool hasComments() const {return ! comments.empty();} std::multimap::const_iterator beginComments(); std::multimap::const_iterator endComments();