]> git.ipfire.org Git - pakfire.git/commitdiff
cgroup: Remove unused function to open root
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 14 Dec 2024 15:06:57 +0000 (15:06 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 14 Dec 2024 15:06:57 +0000 (15:06 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/cgroup.c
src/libpakfire/include/pakfire/cgroup.h

index 94a0f09b9e64dec708ddc0c9368c5b4e09544a0b..875ed60d4f22fcf8047abae957e9ed871e383979 100644 (file)
@@ -493,11 +493,6 @@ int pakfire_cgroup_create(struct pakfire_cgroup** cgroup,
        return r;
 }
 
-int pakfire_cgroup_create_root(
-               struct pakfire_cgroup** cgroup, struct pakfire_ctx* ctx, int flags) {
-       return pakfire_cgroup_open(cgroup, ctx, NULL, NULL, flags);
-}
-
 static void pakfire_cgroup_free(struct pakfire_cgroup* cgroup) {
        if (cgroup->fd >= 0)
                close(cgroup->fd);
index f3d94139cb2902876e23b32dc634fd1b0753191e..1e169706fc8da0674a0eabeb9f8b842ed707e0cc 100644 (file)
@@ -205,9 +205,6 @@ struct pakfire_cgroup_stats {
 int pakfire_cgroup_create(struct pakfire_cgroup** cgroup,
        struct pakfire_ctx* ctx, struct pakfire_cgroup* parent, const char* name, int flags);
 
-int pakfire_cgroup_create_root(
-       struct pakfire_cgroup** cgroup, struct pakfire_ctx* ctx, int flags);
-
 struct pakfire_cgroup* pakfire_cgroup_ref(struct pakfire_cgroup* cgroup);
 struct pakfire_cgroup* pakfire_cgroup_unref(struct pakfire_cgroup* cgroup);