]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib: Remove unused file_id_string()
authorVolker Lendecke <vl@samba.org>
Sat, 9 Nov 2019 20:13:52 +0000 (21:13 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 12 Nov 2019 22:18:39 +0000 (22:18 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Nov 12 22:18:40 UTC 2019 on sn-devel-184

source3/lib/file_id.c
source3/lib/file_id.h

index aae5cc48150b47fc3eed3b9bb65c54bf7c0951a1..0cc5a56bc27a131e11c732061c3da902fc734cf9 100644 (file)
@@ -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).
index e76597d2c8384886f6d10a72f02e0eb59e5b3550..a946cb4d692e46f70d2c05579f43e822776b3864 100644 (file)
@@ -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);