]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
cpu-set-util: drop unused cpu_set_free()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 21 Jun 2025 01:57:01 +0000 (10:57 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 23 Jun 2025 15:20:20 +0000 (00:20 +0900)
src/shared/cpu-set-util.c
src/shared/cpu-set-util.h

index 2e098b1bee250c22a6a9ad0f1611a2c3e10ec3f3..174d284b45707750952ba7c594567630bc750478 100644 (file)
@@ -126,14 +126,6 @@ void cpu_set_done(CPUSet *c) {
         *c = (CPUSet) {};
 }
 
-CPUSet* cpu_set_free(CPUSet *c) {
-        if (!c)
-                return c;
-
-        cpu_set_done(c);
-        return mfree(c);
-}
-
 int cpu_set_realloc(CPUSet *c, size_t n) {
         assert(c);
 
index 645e13cdf2d7c1080d2cd6fa7caca4cd120c4742..8696b39de19391a5dfbe77428d321a9a9f470812 100644 (file)
@@ -20,9 +20,6 @@ void cpu_set_done(CPUSet *c);
                 0;                                          \
         })
 
-CPUSet* cpu_set_free(CPUSet *c);
-DEFINE_TRIVIAL_CLEANUP_FUNC(CPUSet*, cpu_set_free);
-
 int cpu_set_realloc(CPUSet *c, size_t n);
 int cpu_set_add(CPUSet *c, size_t i);
 int cpu_set_add_set(CPUSet *c, const CPUSet *src);