commit a6e4653cced7cf960b99c1f01a37dd25a51eae70
parent c56014f5e4cba41c2f2cccf090db74448ee764c0
Author: William Casarin <jb55@jb55.com>
Date: Thu, 4 Jan 2024 13:44:15 -0800
cursor: remove old array code
Diffstat:
1 file changed, 0 insertions(+), 11 deletions(-)
diff --git a/src/cursor.h b/src/cursor.h
@@ -16,11 +16,6 @@ struct cursor {
unsigned char *end;
};
-struct array {
- struct cursor cur;
- unsigned int elem_size;
-};
-
static inline void reset_cursor(struct cursor *cursor)
{
cursor->p = cursor->start;
@@ -39,12 +34,6 @@ static inline void make_cursor(unsigned char *start, unsigned char *end, struct
cursor->end = end;
}
-static inline void make_array(struct array *a, unsigned char* start, unsigned char *end, unsigned int elem_size)
-{
- make_cursor(start, end, &a->cur);
- a->elem_size = elem_size;
-}
-
static inline int cursor_eof(struct cursor *c)
{
return c->p == c->end;