cgroup-util: remove cg_get_xattr(), it's apparently unused

This commit is contained in:
Lennart Poettering
2025-03-18 07:17:10 +01:00
parent 33cbda04eb
commit 2d47f43b43
2 changed files with 0 additions and 20 deletions
-19
View File
@@ -704,25 +704,6 @@ int cg_set_xattr(const char *path, const char *name, const void *value, size_t s
return RET_NERRNO(setxattr(fs, name, value, size, flags));
}
int cg_get_xattr(const char *path, const char *name, void *value, size_t size) {
_cleanup_free_ char *fs = NULL;
ssize_t n;
int r;
assert(path);
assert(name);
r = cg_get_path(SYSTEMD_CGROUP_CONTROLLER, path, NULL, &fs);
if (r < 0)
return r;
n = getxattr(fs, name, value, size);
if (n < 0)
return -errno;
return (int) n;
}
int cg_get_xattr_malloc(const char *path, const char *name, char **ret, size_t *ret_size) {
_cleanup_free_ char *fs = NULL;
int r;
-1
View File
@@ -263,7 +263,6 @@ int cg_get_attribute_as_bool(const char *controller, const char *path, const cha
int cg_get_owner(const char *path, uid_t *ret_uid);
int cg_set_xattr(const char *path, const char *name, const void *value, size_t size, int flags);
int cg_get_xattr(const char *path, const char *name, void *value, size_t size);
int cg_get_xattr_malloc(const char *path, const char *name, char **ret, size_t *ret_size);
/* Returns negative on error, and 0 or 1 on success for the bool value */
int cg_get_xattr_bool(const char *path, const char *name);