diff --git a/lib/templatesimplifier.cpp b/lib/templatesimplifier.cpp index aadfab8a7..b7fbf0358 100644 --- a/lib/templatesimplifier.cpp +++ b/lib/templatesimplifier.cpp @@ -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 TemplateSimplifier::simplifyTemplatesExpandSpecialized(Token *tokens) { std::set expandedtemplates; diff --git a/lib/templatesimplifier.h b/lib/templatesimplifier.h index 0c4e3c238..e43cb0d2b 100644 --- a/lib/templatesimplifier.h +++ b/lib/templatesimplifier.h @@ -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 */