From: Adhemerval Zanella Date: Tue, 28 Oct 2025 17:08:11 +0000 (-0300) Subject: malloc: Remove unused tcache_set_inactive X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f91abbde021714454b435baeed27977a3094fe67;p=thirdparty%2Fglibc.git malloc: Remove unused tcache_set_inactive clang warns that this function is not used. Reviewed-by: H.J. Lu --- diff --git a/malloc/malloc.c b/malloc/malloc.c index 1cdeb08437..0b21bdf1bd 100644 --- a/malloc/malloc.c +++ b/malloc/malloc.c @@ -3141,13 +3141,6 @@ tcache_enabled (void) return (! tcache_inactive () && ! tcache_disabled ()); } -/* Sets the tcache to INACTIVE state. */ -static __always_inline void -tcache_set_inactive (void) -{ - tcache = (tcache_perthread_struct *) &__tcache_dummy.inactive; -} - /* Sets the tcache to DISABLED state. */ static __always_inline void tcache_set_disabled (void)