aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/garray.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/garray.h')
-rw-r--r--src/nvim/garray.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/nvim/garray.h b/src/nvim/garray.h
index a96deda759..7a766f988a 100644
--- a/src/nvim/garray.h
+++ b/src/nvim/garray.h
@@ -3,10 +3,8 @@
#include <stdbool.h>
#include <stddef.h>
-#include "nvim/garray_defs.h" // IWYU pragma: export
-#include "nvim/log.h"
+#include "nvim/garray_defs.h" // IWYU pragma: keep
#include "nvim/memory.h"
-#include "nvim/types_defs.h"
#define GA_EMPTY(ga_ptr) ((ga_ptr)->ga_len <= 0)
@@ -24,15 +22,6 @@
# include "garray.h.generated.h"
#endif
-static inline void *ga_append_via_ptr(garray_T *gap, size_t item_size)
-{
- if ((int)item_size != gap->ga_itemsize) {
- WLOG("wrong item size (%zu), should be %d", item_size, gap->ga_itemsize);
- }
- ga_grow(gap, 1);
- return ((char *)gap->ga_data) + (item_size * (size_t)gap->ga_len++);
-}
-
/// Deep free a garray of specific type using a custom free function.
/// Items in the array as well as the array itself are freed.
///