From: Volker Lendecke Date: Sat, 9 Nov 2019 20:01:12 +0000 (+0100) Subject: lib: Remove unused file_id_string_tos() X-Git-Tag: talloc-2.3.1~82 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c229c0508bc64bb6e2d8d29be7a7bde58d86c86e;p=thirdparty%2Fsamba.git lib: Remove unused file_id_string_tos() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/lib/file_id.c b/source3/lib/file_id.c index 49e5c50385f..aae5cc48150 100644 --- a/source3/lib/file_id.c +++ b/source3/lib/file_id.c @@ -31,14 +31,6 @@ bool file_id_equal(const struct file_id *id1, const struct file_id *id2) id1->extid == id2->extid; } -/* - a static-like (on talloc_tos()) string for a file_id structure - */ -const char *file_id_string_tos(const struct file_id *id) -{ - return file_id_string(talloc_tos(), id); -} - char *file_id_str_buf(struct file_id fid, struct file_id_buf *dst) { snprintf(dst->buf, diff --git a/source3/lib/file_id.h b/source3/lib/file_id.h index c001199a35b..e76597d2c83 100644 --- a/source3/lib/file_id.h +++ b/source3/lib/file_id.h @@ -34,10 +34,6 @@ bool file_id_equal(const struct file_id *id1, const struct file_id *id2); struct file_id_buf { char buf[63]; }; char *file_id_str_buf(struct file_id fid, struct file_id_buf *dst); -/* - a static-like (on talloc_tos()) string for a file_id structure - */ -const char *file_id_string_tos(const struct file_id *id); /* an allocated string for a file_id structure */