From ead74a4d06f90ce8f51fee8ad34cec80f415e1c5 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Wed, 22 Oct 2025 17:31:23 -0300 Subject: [PATCH] malloc: Remove unused tcache_set_inactive clang warns that this function is not used. --- malloc/malloc.c | 7 ------- 1 file changed, 7 deletions(-) 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) -- 2.47.3