mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
libsmb: Remove unused smb2_create_blob_remove()
Trivial to re-add if needed. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
0b38cd8ea7
commit
d7f5267c2b
@ -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;
|
||||
}
|
||||
|
@ -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_ */
|
||||
|
Loading…
Reference in New Issue
Block a user