]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
tapctl: Remove unused function dont_mute
authorFrank Lichtenheld <frank@lichtenheld.com>
Sun, 19 Apr 2026 13:39:41 +0000 (15:39 +0200)
committerGert Doering <gert@greenie.muc.de>
Sun, 19 Apr 2026 15:45:49 +0000 (17:45 +0200)
Identified by cppcheck.

Change-Id: I87c40dc94035345add1162e5029e51288811cb09
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
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 <gert@greenie.muc.de>
src/tapctl/error.h
src/tapctl/main.c

index 9632b2fb136af4d156a56af294de4ca8b4b7f4f7..f9586dc7c69934e0aa6277c3218d54b7bba5ca33 100644 (file)
@@ -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 */
index 1d047dd7761a7ddde89f5a151d00aadf8cca90df..6a4a240f004eecbe59b6e7bcfb82dd70a7947acb 100644 (file)
@@ -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)
 {