From c229c0508bc64bb6e2d8d29be7a7bde58d86c86e Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 9 Nov 2019 21:01:12 +0100 Subject: [PATCH] lib: Remove unused file_id_string_tos() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/lib/file_id.c | 8 -------- source3/lib/file_id.h | 4 ---- 2 files changed, 12 deletions(-) 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 */ -- 2.47.3