From 315d17ea50c28277e35cd14be4f797725611e1e3 Mon Sep 17 00:00:00 2001 From: Paul Date: Tue, 7 Nov 2023 18:44:50 -0600 Subject: [PATCH] Remove unused function --- lib/astutils.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/lib/astutils.cpp b/lib/astutils.cpp index 0f048316fb4..439a9cfe818 100644 --- a/lib/astutils.cpp +++ b/lib/astutils.cpp @@ -107,20 +107,6 @@ static int getArgumentPos(const Token* ftok, const Token* tokToFind){ return findArgumentPos(startTok, tokToFind); } -template )> -static void astFlattenRecursive(T* tok, std::vector& result, const char* op, nonneg int depth = 0) -{ - ++depth; - if (!tok || depth >= 100) - return; - if (tok->str() == op) { - astFlattenRecursive(tok->astOperand1(), result, op, depth); - astFlattenRecursive(tok->astOperand2(), result, op, depth); - } else { - result.push_back(tok); - } -} - std::vector astFlatten(const Token* tok, const char* op) { std::vector result;