lib/core: (refactor) Drop wrapper and unneeded args for variant writing
authorColin Walters <walters@verbum.org>
Sat, 7 Oct 2017 13:36:51 +0000 (09:36 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 11 Oct 2017 19:04:46 +0000 (19:04 +0000)
commitcd8fc8e37a8489f5d15ace8e6dd2ccbb551bc877
tree5bb5ea73dea30c3f5b092e7b8e93b5b618647c9c
parent22869e0b729eb35cbcb7f1ff2c410e026485adcc
lib/core: (refactor) Drop wrapper and unneeded args for variant writing

Nothing was using the `bytes_written` data (we always discard partially written
tmpfiles), so simplify everything by dropping it. Further, we always passed an
offset of `0`, so drop that argument too. (I believe that this was previously
used by the "pack files" code that we deleted long ago)

Second, we had an unnecessary internal wrapper for this function; drop that too.

Closes: #1257
Approved by: jlebon
src/libostree/ostree-core-private.h
src/libostree/ostree-core.c
src/libostree/ostree-repo-commit.c
src/libostree/ostree-repo-static-delta-processing.c