TemplateSimplifier: Removed unused function
This commit is contained in:
parent
435340b463
commit
2c10e9a6ca
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue