From f5e0735d9434d4086f9c4c97d97e53dc676f2ab2 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Thu, 24 Apr 2025 09:38:09 +0200 Subject: [PATCH] Scripts: a bit noisy, we just want the gory details now --- Scripts/unused-functions.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Scripts/unused-functions.sh b/Scripts/unused-functions.sh index 55d071edf..23842d103 100755 --- a/Scripts/unused-functions.sh +++ b/Scripts/unused-functions.sh @@ -63,7 +63,8 @@ grep -Eor '^function &?[^( ]+' ${TESTDIR} | tr ':' ' ' | tr -d '&' | while read echo "${FUNC}() appears unused" ${NOTE} elif [ ${USED} -eq 2 ]; then # XXX if a match happens in the same file it's probably already considered ;) - echo "${FUNC}() only used once, consider refactor" + #echo "${FUNC}() only used once, consider refactor" + : else USED=$((USED - 1)) #echo "${FUNC}() used ${USED} times"