Removed unused CppCheck::replaceAll()

This commit is contained in:
Daniel Marjamäki 2015-12-10 13:32:36 +01:00
parent 1f16e72b19
commit 61da95010c
2 changed files with 0 additions and 15 deletions

View File

@ -76,15 +76,6 @@ unsigned int CppCheck::check(const std::string &path, const std::string &content
return processFile(path, iss);
}
void CppCheck::replaceAll(std::string& code, const std::string &from, const std::string &to)
{
std::size_t pos = 0;
while ((pos = code.find(from, pos)) != std::string::npos) {
code.replace(pos, from.length(), to);
pos += to.length();
}
}
unsigned int CppCheck::processFile(const std::string& filename, std::istream& fileStream)
{
exitcode = 0;

View File

@ -177,12 +177,6 @@ private:
*/
virtual void reportOut(const std::string &outmsg);
/**
* @brief Replace "from" strings with "to" strings in "code"
* and return it.
*/
static void replaceAll(std::string& code, const std::string &from, const std::string &to);
std::list<std::string> _errorList;
Settings _settings;