]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
malloc: Remove unused tcache_set_inactive
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 28 Oct 2025 17:08:11 +0000 (14:08 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 29 Oct 2025 15:53:53 +0000 (12:53 -0300)
clang warns that this function is not used.

Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
malloc/malloc.c

index 1cdeb084376cee497d4857961f245412a52d0d17..0b21bdf1bda84685c7ab9e2b7d53f258004f0102 100644 (file)
@@ -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)