libsmb: Remove unused smb2_create_blob_remove()
authorVolker Lendecke <vl@samba.org>
Thu, 31 Aug 2023 09:23:58 +0000 (11:23 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 10 Oct 2023 23:23:40 +0000 (23:23 +0000)
Trivial to re-add if needed.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
libcli/smb/smb2_create_blob.c
libcli/smb/smb2_create_blob.h

index ecd61e0c9b2cd2a51477c97ead1abbaed960ac0f..57c7a9d1150c4c469863a0166fa66a2afeffde4b 100644 (file)
@@ -225,18 +225,3 @@ struct smb2_create_blob *smb2_create_blob_find(const struct smb2_create_blobs *b
 
        return NULL;
 }
-
-void smb2_create_blob_remove(struct smb2_create_blobs *b, const char *tag)
-{
-       struct smb2_create_blob *blob = smb2_create_blob_find(b, tag);
-
-       if (blob == NULL) {
-               return;
-       }
-
-       TALLOC_FREE(blob->tag);
-       data_blob_free(&blob->data);
-
-       *blob = b->blobs[b->num_blobs-1];
-       b->num_blobs -= 1;
-}
index d6dac5e05beb4472225da63988fa4c1078b324c4..642695a752ccaed72590c1af8310548852c0c93b 100644 (file)
@@ -72,6 +72,4 @@ NTSTATUS smb2_create_blob_add(TALLOC_CTX *mem_ctx, struct smb2_create_blobs *b,
 struct smb2_create_blob *smb2_create_blob_find(const struct smb2_create_blobs *b,
                                               const char *tag);
 
-void smb2_create_blob_remove(struct smb2_create_blobs *b, const char *tag);
-
 #endif /* _LIBCLI_SMB_SMB2_CREATE_BLOB_H_ */