Refactoring: Removed _settings member from the Tokenizer

This commit is contained in:
Daniel Marjamäki 2008-11-25 18:44:35 +00:00
parent 8845e8bc89
commit 4f4a2391e0
6 changed files with 0 additions and 18 deletions

View File

@ -181,7 +181,6 @@ void CppCheck::check()
void CppCheck::checkFile(const std::string &code, const char FileName[])
{
Tokenizer _tokenizer;
_tokenizer.settings( _settings );
// Tokenize the file
{

View File

@ -45,9 +45,6 @@ private:
tokenizer.simplifyTokenList();
// Fill function list
Settings settings;
settings._checkCodingStyle = true;
tokenizer.settings( settings );
tokenizer.fillFunctionList();
// Clear the error buffer..

View File

@ -48,12 +48,6 @@ private:
std::istringstream istr(code);
tokenizer.tokenize( istr, "test.cpp" );
// Fill function list
Settings settings;
settings._checkCodingStyle = true;
tokenizer.settings( settings );
tokenizer.fillFunctionList();
// Clear the error buffer..
errout.str("");

View File

@ -50,7 +50,6 @@ private:
Settings settings;
settings._checkCodingStyle = true;
settings._showAll = false;
tokenizer.settings( settings );
tokenizer.fillFunctionList();
CheckMemoryLeakClass checkMemoryLeak( &tokenizer, settings, this );
checkMemoryLeak.CheckMemoryLeak();

View File

@ -1128,11 +1128,6 @@ void Tokenizer::fillFunctionList()
//---------------------------------------------------------------------------
void Tokenizer::settings( const Settings &settings )
{
_settings = settings;
}
// Deallocate lists..
void Tokenizer::DeallocateTokens()
{

View File

@ -74,7 +74,6 @@ public:
void fillFunctionList();
const TOKEN *GetFunctionTokenByName( const char funcname[] ) const;
void settings( const Settings &settings );
const TOKEN *tokens() const;
@ -103,7 +102,6 @@ private:
std::map<std::string, unsigned int> _typeSize;
std::vector<const TOKEN *> _functionList;
std::vector<std::string> _files;
Settings _settings;
struct DefineSymbol * _dsymlist;
TOKEN *_tokens;
};