diff options
author | bfredl <bjorn.linse@gmail.com> | 2024-02-28 11:32:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-28 11:32:25 +0100 |
commit | c538ec85220aea11bbdb52028aa335787e9e4f42 (patch) | |
tree | 138b11577f1896643fb593481a41c9b841be6362 /src/nvim/os/fileio.c | |
parent | 07b4b7524fc7faefb69e5c94d2512eb0807f0593 (diff) | |
parent | de5cf09cf98e20d8d3296ad6933ff2741acf83f7 (diff) | |
download | rneovim-c538ec85220aea11bbdb52028aa335787e9e4f42.tar.gz rneovim-c538ec85220aea11bbdb52028aa335787e9e4f42.tar.bz2 rneovim-c538ec85220aea11bbdb52028aa335787e9e4f42.zip |
Merge pull request #27643 from bfredl/metadata2
refactor(metadata): generate all metadata in lua
Diffstat (limited to 'src/nvim/os/fileio.c')
-rw-r--r-- | src/nvim/os/fileio.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/nvim/os/fileio.c b/src/nvim/os/fileio.c index e14de9e5db..da6fb13768 100644 --- a/src/nvim/os/fileio.c +++ b/src/nvim/os/fileio.c @@ -366,24 +366,6 @@ ptrdiff_t file_skip(FileDescriptor *const fp, const size_t size) return (ptrdiff_t)read_bytes; } -/// Msgpack callback for writing to a file -/// -/// @param data File to write to. -/// @param[in] buf Data to write. -/// @param[in] len Length of the data to write. -/// -/// @return 0 in case of success, -1 in case of error. -int msgpack_file_write(void *data, const char *buf, size_t len) - FUNC_ATTR_NONNULL_ALL FUNC_ATTR_WARN_UNUSED_RESULT -{ - assert(len < PTRDIFF_MAX); - const ptrdiff_t written_bytes = file_write((FileDescriptor *)data, buf, len); - if (written_bytes < 0) { - return msgpack_file_write_error((int)written_bytes); - } - return 0; -} - /// Print error which occurs when failing to write msgpack data /// /// @param[in] error Error code of the error to print. |