cleanup: removed unused variables

This commit is contained in:
Daniel Marjamäki 2010-02-28 07:38:07 +01:00
parent 6ca4b008d0
commit 248b6aa159
2 changed files with 0 additions and 8 deletions

View File

@ -78,9 +78,6 @@ std::string Preprocessor::read(std::istream &istr, const std::string &filename,
// need space.. #if( => #if (
bool needSpace = false;
// For the error report
int lineno = 1;
// handling <backspace><newline>
// when this is encountered the <backspace><newline> will be "skipped".
// on the next <newline>, extra newlines will be added
@ -89,9 +86,6 @@ std::string Preprocessor::read(std::istream &istr, const std::string &filename,
std::ostringstream code;
for (unsigned char ch = readChar(istr); istr.good(); ch = readChar(istr))
{
if (ch == '\n')
++lineno;
// Replace assorted special chars with spaces..
if (((ch & 0x80) == 0) && (ch != '\n') && (std::isspace(ch) || std::iscntrl(ch)))
ch = ' ';

View File

@ -633,7 +633,6 @@ void Tokenizer::simplifyTypedef()
int offset = 1;
bool functionPtr = false;
bool functionRef = false;
bool hasTemplate = false;
if (Token::Match(tok->next(), "::") ||
Token::Match(tok->next(), "%type%"))
@ -664,7 +663,6 @@ void Tokenizer::simplifyTypedef()
{
int level = 1;
int paren = 0;
hasTemplate = true;
typeEnd = tok->tokAt(offset + 1);
for (; typeEnd ; typeEnd = typeEnd->next())
{