TemplateSimplifier: Removed unused function

This commit is contained in:
Daniel Marjamäki 2012-07-29 16:14:26 +02:00
parent 435340b463
commit 2c10e9a6ca
2 changed files with 0 additions and 20 deletions

View File

@ -302,21 +302,6 @@ bool TemplateSimplifier::removeTemplate(Token *tok)
return false;
}
void TemplateSimplifier::removeAllTemplates(Token *tok)
{
bool goback = false;
for (; tok; tok = tok->next()) {
if (goback) {
tok = tok->previous();
goback = false;
}
if (tok->str() == "template")
goback = removeTemplate(tok);
}
}
std::set<std::string> TemplateSimplifier::simplifyTemplatesExpandSpecialized(Token *tokens)
{
std::set<std::string> expandedtemplates;

View File

@ -159,11 +159,6 @@ public:
private:
/**
* Remove all "template < ..." they can cause false positives because they are not expanded
*/
static void removeAllTemplates(Token *tok);
/**
* Remove a specific "template < ..." template class/function
*/