Removed unused CppCheck::analyseFile

This commit is contained in:
Daniel Marjamäki 2015-12-03 08:42:12 +01:00
parent b8d39a2229
commit a51df5f00d
2 changed files with 0 additions and 25 deletions

View File

@ -286,26 +286,6 @@ void CppCheck::internalError(const std::string &filename, const std::string &msg
}
}
void CppCheck::analyseFile(std::istream &fin, const std::string &filename)
{
// Preprocess file..
Preprocessor preprocessor(_settings, this);
std::list<std::string> configurations;
std::string filedata;
preprocessor.preprocess(fin, filedata, configurations, filename, _settings._includePaths);
const std::string code = preprocessor.getcode(filedata, "", filename);
if (_settings.checkConfiguration) {
return;
}
// Tokenize..
Tokenizer tokenizer(&_settings, this);
std::istringstream istr(code);
tokenizer.tokenize(istr, filename.c_str());
tokenizer.simplifyTokenList2();
}
//---------------------------------------------------------------------------
// CppCheck - A function that checks a specified file
//---------------------------------------------------------------------------

View File

@ -117,11 +117,6 @@ public:
*/
void getErrorMessages();
/**
* @brief Analyse file - It's public so unit tests can be written
*/
void analyseFile(std::istream &f, const std::string &filename);
void tooManyConfigsError(const std::string &file, const std::size_t numberOfConfigurations);
void purgedConfigurationMessage(const std::string &file, const std::string& configuration);