Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

TemplateSimplifier: Removed unused function

  • Loading branch information...
commit 2c10e9a6ca43b573cfd417b24212b62b293591cd 1 parent 435340b
Daniel Marjamäki authored
Showing with 0 additions and 20 deletions.
  1. +0 −15 lib/templatesimplifier.cpp
  2. +0 −5 lib/templatesimplifier.h
15 lib/templatesimplifier.cpp
View
@@ -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;
5 lib/templatesimplifier.h
View
@@ -160,11 +160,6 @@ class CPPCHECKLIB TemplateSimplifier {
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
*/
static bool removeTemplate(Token *tok);
Please sign in to comment.
Something went wrong with that request. Please try again.