Mercurial > nomad
changeset 819:054a740303bf
objstore/posix: remove create_obj_with_data helper
There was absolutely no difference between create_obj_with_data and
create_obj.
Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author | Josef 'Jeff' Sipek <jeffpc@josefsipek.net> |
---|---|
date | Mon, 06 Apr 2020 22:24:18 -0400 |
parents | facc1b5299a8 |
children | 94274e0d4dbe |
files | src/objstore/posix/obj_create.c |
diffstat | 1 files changed, 3 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/src/objstore/posix/obj_create.c Mon Apr 06 22:22:49 2020 -0400 +++ b/src/objstore/posix/obj_create.c Mon Apr 06 22:24:18 2020 -0400 @@ -90,11 +90,9 @@ return ret; } -static int create_obj_with_data(int rootfd, - uint64_t this_host, uint64_t this_uniq, - uint64_t parent_host, uint64_t parent_uniq, - const struct nvclock *clock, - const struct nattr *_attrs) +int create_obj(int rootfd, uint64_t this_host, uint64_t this_uniq, + uint64_t parent_host, uint64_t parent_uniq, + const struct nvclock *clock, const struct nattr *_attrs) { struct buffer contents; struct nattr attrs; @@ -161,14 +159,6 @@ return ret; } -int create_obj(int rootfd, uint64_t host, uint64_t uniq, - uint64_t parent_host, uint64_t parent_uniq, - const struct nvclock *clock, const struct nattr *attrs) -{ - return create_obj_with_data(rootfd, host, uniq, parent_host, - parent_uniq, clock, attrs); -} - /* create a root directory */ int create_rootdir(int rootfd, uint64_t host, uint64_t uniq) {