]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
malloc: Remove unused tcache_set_inactive
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 22 Oct 2025 20:31:23 +0000 (17:31 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 27 Oct 2025 13:03:37 +0000 (10:03 -0300)
clang warns that this function is not used.

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)