Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

TemplateSimplifier: Removed unused function

  • Loading branch information...
commit 2c10e9a6ca43b573cfd417b24212b62b293591cd 1 parent 435340b
Daniel Marjamäki authored
15  lib/templatesimplifier.cpp
@@ -302,21 +302,6 @@ bool TemplateSimplifier::removeTemplate(Token *tok)
302 302
     return false;
303 303
 }
304 304
 
305  
-void TemplateSimplifier::removeAllTemplates(Token *tok)
306  
-{
307  
-    bool goback = false;
308  
-    for (; tok; tok = tok->next()) {
309  
-        if (goback) {
310  
-            tok = tok->previous();
311  
-            goback = false;
312  
-        }
313  
-
314  
-        if (tok->str() == "template")
315  
-            goback = removeTemplate(tok);
316  
-    }
317  
-}
318  
-
319  
-
320 305
 std::set<std::string> TemplateSimplifier::simplifyTemplatesExpandSpecialized(Token *tokens)
321 306
 {
322 307
     std::set<std::string> expandedtemplates;
5  lib/templatesimplifier.h
@@ -160,11 +160,6 @@ class CPPCHECKLIB TemplateSimplifier {
160 160
 private:
161 161
 
162 162
     /**
163  
-     * Remove all "template < ..." they can cause false positives because they are not expanded
164  
-     */
165  
-    static void removeAllTemplates(Token *tok);
166  
-
167  
-    /**
168 163
      * Remove a specific "template < ..." template class/function
169 164
      */
170 165
     static bool removeTemplate(Token *tok);

0 notes on commit 2c10e9a

Please sign in to comment.
Something went wrong with that request. Please try again.