Removed redundant valuetype debug output

This commit is contained in:
Daniel Marjamäki 2016-05-14 20:11:57 +02:00
parent 5a1bea2a09
commit 7591a57587
3 changed files with 0 additions and 25 deletions

View File

@ -4408,28 +4408,6 @@ void SymbolDatabase::setValueTypeInTokenList(Token *tokens, bool cpp, char defau
}
}
void SymbolDatabase::debugValueType() const
{
unsigned int linenr = 0U;
std::cout << std::endl << "### ValueType ###" << std::endl;
for (const Token *tok = _tokenizer->tokens(); tok; tok = tok->next()) {
if (tok->linenr() != linenr)
std::cout << std::endl << tok->linenr() << ": ";
linenr = tok->linenr();
std::cout << tok->str();
if (tok->valueType()) {
std::string t = tok->valueType()->str();
std::string::size_type pos;
while ((pos = t.find(" ")) != std::string::npos)
t[pos] = '_';
std::cout << ':' << t;
}
std::cout << ' ';
}
std::cout << std::endl << std::endl;
}
std::string ValueType::str() const
{
std::string ret;

View File

@ -1061,8 +1061,6 @@ public:
/** Set valuetype in provided tokenlist */
static void setValueTypeInTokenList(Token *tokens, bool cpp, char defaultSignedness, const Library* lib);
void debugValueType() const;
private:
friend class Scope;
friend class Function;

View File

@ -3843,7 +3843,6 @@ void Tokenizer::printDebugOutput(unsigned int simplification) const
_symbolDatabase->printXml(std::cout);
else if (_settings->verbose) {
_symbolDatabase->printOut("Symbol database");
_symbolDatabase->debugValueType();
}
}