libcli/security: Remove unused dup_sec_desc_buf()
authorAndrew Bartlett <abartlet@samba.org>
Tue, 21 May 2019 03:03:06 +0000 (15:03 +1200)
committerGary Lockyer <gary@samba.org>
Wed, 22 May 2019 05:59:14 +0000 (05:59 +0000)
This has been unused since before
762e7e1dff89cc14b0130fc9a22038b0845630a2 in 2003.

Found by callcatcher

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
libcli/security/secdesc.c
libcli/security/secdesc.h

index 53e0e023a7b9186aef87f84df821ed3e5a1bf085..cd944306ee165af34df7c5b23c0c41721f747b99 100644 (file)
@@ -384,18 +384,6 @@ struct sec_desc_buf *make_sec_desc_buf(TALLOC_CTX *ctx, size_t len, struct secur
        return dst;
 }
 
-/*******************************************************************
- Duplicates a struct sec_desc_buf structure.
-********************************************************************/
-
-struct sec_desc_buf *dup_sec_desc_buf(TALLOC_CTX *ctx, struct sec_desc_buf *src)
-{
-       if(src == NULL)
-               return NULL;
-
-       return make_sec_desc_buf( ctx, src->sd_size, src->sd);
-}
-
 /*
  * Determine if an struct security_ace is inheritable
  */
index dd8cf4ed716fa20689636c0146db67096690417a..ca9376a372ef4ba1ae69bbab4c8ba75ccd98d390 100644 (file)
@@ -84,11 +84,6 @@ struct security_descriptor *make_standard_sec_desc(TALLOC_CTX *ctx, const struct
 ********************************************************************/
 struct sec_desc_buf *make_sec_desc_buf(TALLOC_CTX *ctx, size_t len, struct security_descriptor *sec_desc);
 
-/*******************************************************************
- Duplicates a struct sec_desc_buf structure.
-********************************************************************/
-struct sec_desc_buf *dup_sec_desc_buf(TALLOC_CTX *ctx, struct sec_desc_buf *src);
-
 bool sd_has_inheritable_components(const struct security_descriptor *parent_ctr, bool container);
 NTSTATUS se_create_child_secdesc(TALLOC_CTX *ctx,
                                        struct security_descriptor **ppsd,