From: Frank Lichtenheld Date: Sun, 19 Apr 2026 13:39:41 +0000 (+0200) Subject: tapctl: Remove unused function dont_mute X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=6d54d7ca5d32ebd830298b303a1146365fb35bbc;p=thirdparty%2Fopenvpn.git tapctl: Remove unused function dont_mute Identified by cppcheck. Change-Id: I87c40dc94035345add1162e5029e51288811cb09 Signed-off-by: Frank Lichtenheld Acked-by: Gert Doering Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1615 Message-Id: <20260419133947.21215-1-gert@greenie.muc.de> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg36662.html Signed-off-by: Gert Doering --- diff --git a/src/tapctl/error.h b/src/tapctl/error.h index 9632b2fb1..f9586dc7c 100644 --- a/src/tapctl/error.h +++ b/src/tapctl/error.h @@ -109,11 +109,11 @@ check_debug_level(unsigned int level) return (level & M_DEBUG_LEVEL) <= x_debug_level; } -/** Return true if flags represent and enabled, not muted log level */ +/** Return true if flags represent */ static inline bool msg_test(unsigned int flags) { - return check_debug_level(flags) && dont_mute(flags); + return check_debug_level(flags); } #endif /* ifndef ERROR_H */ diff --git a/src/tapctl/main.c b/src/tapctl/main.c index 1d047dd77..6a4a240f0 100644 --- a/src/tapctl/main.c +++ b/src/tapctl/main.c @@ -686,15 +686,6 @@ quit: } -bool -dont_mute(unsigned int flags) -{ - UNREFERENCED_PARAMETER(flags); - - return true; -} - - void x_msg_va(const unsigned int flags, const char *format, va_list arglist) {