summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/strvec.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/strvec.c b/src/strvec.c
index f6432b9..bf8b95c 100644
--- a/src/strvec.c
+++ b/src/strvec.c
@@ -4,12 +4,6 @@
#include <string.h>
-struct strvec {
- struct dvec vec;
-};
-
-const size_t strvec_dsize = sizeof(struct strvec);
-
int
strvec_init(struct strvec *strvec, size_t cap, struct allocator *allocator)
{
@@ -158,30 +152,6 @@ strvec_shrink(struct strvec *strvec)
return rc;
}
-const char **
-strvec_stra(struct strvec *strvec)
-{
- LIBSTRVEC_ABORT_ON_ARGS(!strvec && !strvec->vec.data);
-
- return strvec->vec.data;
-}
-
-const char **
-strvec_at(struct strvec *strvec, size_t index)
-{
- LIBSTRVEC_ABORT_ON_ARGS(!strvec);
-
- return dvec_at(&strvec->vec, index);
-}
-
-size_t
-strvec_len(struct strvec *strvec)
-{
- LIBSTRVEC_ABORT_ON_ARGS(!strvec);
-
- return strvec->vec.len;
-}
-
int
strvec_pushn(struct strvec *strvec, const char **str, size_t count)
{