From 2c10e9a6ca43b573cfd417b24212b62b293591cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 29 Jul 2012 16:14:26 +0200 Subject: [PATCH] TemplateSimplifier: Removed unused function --- lib/templatesimplifier.cpp | 15 --------------- lib/templatesimplifier.h | 5 ----- 2 files changed, 20 deletions(-) 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 */