diff options
author | bfredl <bjorn.linse@gmail.com> | 2024-05-28 19:42:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-28 19:42:00 +0200 |
commit | fc2429962ac8837eba45e4e62cfccc57e5049441 (patch) | |
tree | 5793fcc87778e6f435b7dcfa1ae0c8e684a5cfdd /src/nvim/os/fileio.c | |
parent | 0bdd602bf974fdefc348f47bb7b9057521eb0407 (diff) | |
parent | ff7f22c28b602c84350785624b4b6fc9ae35f950 (diff) | |
download | rneovim-fc2429962ac8837eba45e4e62cfccc57e5049441.tar.gz rneovim-fc2429962ac8837eba45e4e62cfccc57e5049441.tar.bz2 rneovim-fc2429962ac8837eba45e4e62cfccc57e5049441.zip |
Merge pull request #29063 from bfredl/noapifile
refactor(fileio): remove useless use of FileDescriptor
Diffstat (limited to 'src/nvim/os/fileio.c')
-rw-r--r-- | src/nvim/os/fileio.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/nvim/os/fileio.c b/src/nvim/os/fileio.c index da6fb13768..fbb2be5104 100644 --- a/src/nvim/os/fileio.c +++ b/src/nvim/os/fileio.c @@ -365,14 +365,3 @@ ptrdiff_t file_skip(FileDescriptor *const fp, const size_t size) return (ptrdiff_t)read_bytes; } - -/// Print error which occurs when failing to write msgpack data -/// -/// @param[in] error Error code of the error to print. -/// -/// @return -1 (error return for msgpack_packer callbacks). -int msgpack_file_write_error(const int error) -{ - semsg(_("E5420: Failed to write to file: %s"), os_strerror(error)); - return -1; -} |