Removed unused CppCheck::replaceAll()
This commit is contained in:
parent
1f16e72b19
commit
61da95010c
|
@ -76,15 +76,6 @@ unsigned int CppCheck::check(const std::string &path, const std::string &content
|
||||||
return processFile(path, iss);
|
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)
|
unsigned int CppCheck::processFile(const std::string& filename, std::istream& fileStream)
|
||||||
{
|
{
|
||||||
exitcode = 0;
|
exitcode = 0;
|
||||||
|
|
|
@ -177,12 +177,6 @@ private:
|
||||||
*/
|
*/
|
||||||
virtual void reportOut(const std::string &outmsg);
|
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;
|
std::list<std::string> _errorList;
|
||||||
Settings _settings;
|
Settings _settings;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue