From 7aaefd6f467569c4040592212c8fcf6fb6a1c399 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 11 Nov 2020 08:03:46 +0100 Subject: [PATCH] lib: Remove unused security_descriptor_append() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- libcli/security/security_descriptor.c | 12 ------------ libcli/security/security_descriptor.h | 2 -- 2 files changed, 14 deletions(-) diff --git a/libcli/security/security_descriptor.c b/libcli/security/security_descriptor.c index 28c68215b8a..ba142016389 100644 --- a/libcli/security/security_descriptor.c +++ b/libcli/security/security_descriptor.c @@ -547,18 +547,6 @@ static struct security_descriptor *security_descriptor_appendv(struct security_d return sd; } -struct security_descriptor *security_descriptor_append(struct security_descriptor *sd, - ...) -{ - va_list ap; - - va_start(ap, sd); - sd = security_descriptor_appendv(sd, false, ap); - va_end(ap); - - return sd; -} - static struct security_descriptor *security_descriptor_createv(TALLOC_CTX *mem_ctx, uint16_t sd_type, const char *owner_sid, diff --git a/libcli/security/security_descriptor.h b/libcli/security/security_descriptor.h index dd5d5f38049..7e6df87fefa 100644 --- a/libcli/security/security_descriptor.h +++ b/libcli/security/security_descriptor.h @@ -48,8 +48,6 @@ bool security_descriptor_equal(const struct security_descriptor *sd1, bool security_descriptor_mask_equal(const struct security_descriptor *sd1, const struct security_descriptor *sd2, uint32_t mask); -struct security_descriptor *security_descriptor_append(struct security_descriptor *sd, - ...); struct security_descriptor *security_descriptor_dacl_create(TALLOC_CTX *mem_ctx, uint16_t sd_type, const char *owner_sid,