From d7f5267c2bdd33f6365799a60619dfe5273e3a09 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 31 Aug 2023 11:23:58 +0200 Subject: [PATCH] libsmb: Remove unused smb2_create_blob_remove() Trivial to re-add if needed. Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- libcli/smb/smb2_create_blob.c | 15 --------------- libcli/smb/smb2_create_blob.h | 2 -- 2 files changed, 17 deletions(-) diff --git a/libcli/smb/smb2_create_blob.c b/libcli/smb/smb2_create_blob.c index ecd61e0c9b2..57c7a9d1150 100644 --- a/libcli/smb/smb2_create_blob.c +++ b/libcli/smb/smb2_create_blob.c @@ -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; -} diff --git a/libcli/smb/smb2_create_blob.h b/libcli/smb/smb2_create_blob.h index d6dac5e05be..642695a752c 100644 --- a/libcli/smb/smb2_create_blob.h +++ b/libcli/smb/smb2_create_blob.h @@ -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_ */