From: Volker Lendecke Date: Sat, 9 Nov 2019 20:13:52 +0000 (+0100) Subject: lib: Remove unused file_id_string() X-Git-Tag: talloc-2.3.1~78 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a0aaf5c3345239959221d6c2e9cd949b8ccdf233;p=thirdparty%2Fsamba.git lib: Remove unused file_id_string() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Tue Nov 12 22:18:40 UTC 2019 on sn-devel-184 --- diff --git a/source3/lib/file_id.c b/source3/lib/file_id.c index aae5cc48150..0cc5a56bc27 100644 --- a/source3/lib/file_id.c +++ b/source3/lib/file_id.c @@ -42,17 +42,6 @@ char *file_id_str_buf(struct file_id fid, struct file_id_buf *dst) return dst->buf; } -/* - an allocated string for a file_id structure - */ -const char *file_id_string(TALLOC_CTX *mem_ctx, const struct file_id *id) -{ - struct file_id_buf buf; - char *result = talloc_strdup(mem_ctx, file_id_str_buf(*id, &buf)); - SMB_ASSERT(result != NULL); - return result; -} - /* push a 16 byte version of a file id into a buffer. This ignores the extid and is needed when dev/inodes are stored in persistent storage (tdbs). diff --git a/source3/lib/file_id.h b/source3/lib/file_id.h index e76597d2c83..a946cb4d692 100644 --- a/source3/lib/file_id.h +++ b/source3/lib/file_id.h @@ -37,7 +37,6 @@ char *file_id_str_buf(struct file_id fid, struct file_id_buf *dst); /* an allocated string for a file_id structure */ -const char *file_id_string(TALLOC_CTX *mem_ctx, const struct file_id *id); void push_file_id_16(char *buf, const struct file_id *id); void push_file_id_24(char *buf, const struct file_id *id); void pull_file_id_24(const char *buf, struct file_id *id);