Refactoring: Removed 'possibleError'

This commit is contained in:
Daniel Marjamäki 2010-05-16 19:57:41 +02:00
parent d0e122079f
commit 4c6858fa9c
2 changed files with 1 additions and 5 deletions

View File

@ -101,8 +101,6 @@ protected:
std::list<const Token *> callstack;
if (tok)
callstack.push_back(tok);
else if (severity == Severity::possibleError)
return; // don't list inconclusive checks in the --errorlist output
reportError(callstack, severity, id, msg);
}

View File

@ -322,7 +322,7 @@ private:
class Severity
{
public:
enum e { error, style, possibleError };
enum e { error, style };
static std::string stringify(e severity)
{
switch (severity)
@ -331,8 +331,6 @@ public:
return "error";
case style:
return "style";
case possibleError:
return "possible error";
};
return "???";
}