commit 6dbf3416b9f1688bbd4480c90f6df46e7971ce98
parent 2b14acd62fe968992f1ec8ad7796859fd75ade43
Author: William Casarin <jb55@jb55.com>
Date: Thu, 4 Jan 2024 13:44:15 -0800
nostrdb/cursor: remove old array code
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
1 file changed, 0 insertions(+), 11 deletions(-)
diff --git a/nostrdb/src/cursor.h b/nostrdb/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;