aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/fileio.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2024-05-31 14:40:53 +0200
committerbfredl <bjorn.linse@gmail.com>2024-06-08 12:50:17 +0200
commit78d21593a35cf89692224f1000a04d3c9fff8add (patch)
tree116e12a3c41b1bd7a5e0f635b4ef0b75cf75ad9a /src/nvim/os/fileio.c
parent4881211097aba7f5d17700362ec0967e3024f074 (diff)
downloadrneovim-78d21593a35cf89692224f1000a04d3c9fff8add.tar.gz
rneovim-78d21593a35cf89692224f1000a04d3c9fff8add.tar.bz2
rneovim-78d21593a35cf89692224f1000a04d3c9fff8add.zip
refactor(io): make rstream use a linear buffer
If you like it you shouldn't put a ring on it. This is what _every_ consumer of RStream used anyway, either by calling rbuffer_reset, or rbuffer_consumed_compact (same as rbuffer_reset without needing a scratch buffer), or by consuming everything in each stream_read_cb call directly.
Diffstat (limited to 'src/nvim/os/fileio.c')
-rw-r--r--src/nvim/os/fileio.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/nvim/os/fileio.c b/src/nvim/os/fileio.c
index 5f372b2376..585c4964e2 100644
--- a/src/nvim/os/fileio.c
+++ b/src/nvim/os/fileio.c
@@ -21,8 +21,6 @@
#include "nvim/os/fileio.h"
#include "nvim/os/fs.h"
#include "nvim/os/os_defs.h"
-#include "nvim/rbuffer.h"
-#include "nvim/rbuffer_defs.h"
#include "nvim/types_defs.h"
#ifdef HAVE_SYS_UIO_H