From b62d35a130edbf989f55ecc2555c6c3c5d14be87 Mon Sep 17 00:00:00 2001 From: 0x221E Date: Sat, 17 Jan 2026 18:17:46 +0100 Subject: [PATCH] Refactor: Remove reduntant functions from string and memory module --- src/string.c | 5 ----- src/string.h | 3 +-- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/string.c b/src/string.c index ab78be1..454d772 100644 --- a/src/string.c +++ b/src/string.c @@ -14,11 +14,6 @@ StringPool string_pool_create(Arena* a) return sp; } -void string_pool_reset(StringPool* ps) -{ - // arena_reset(&ps->a); -} - StringView string_create(StringPool* sp, const char* s, size_t len) { assert(sp != NULL); diff --git a/src/string.h b/src/string.h index 802b0ca..2a9620f 100644 --- a/src/string.h +++ b/src/string.h @@ -5,7 +5,7 @@ #include -#define SV(sp, s) string_create(sp, s, sizeof(s) - 1) +#define STR_LIT(sp, s) string_create(sp, s, sizeof(s) - 1) struct StringPool { @@ -22,7 +22,6 @@ typedef struct StringPool StringPool; typedef struct StringView StringView; StringPool string_pool_create(Arena* a); -void string_pool_reset(StringPool* sp); StringView string_create(StringPool* sp, const char* s, size_t len);