aboutsummaryrefslogtreecommitdiff
path: root/lib/const_strings.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/const_strings.c')
-rw-r--r--lib/const_strings.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/const_strings.c b/lib/const_strings.c
index 837b138..2d743b1 100644
--- a/lib/const_strings.c
+++ b/lib/const_strings.c
@@ -12,11 +12,6 @@ const_string cs_from_cstr(const char* cstr) {
return cs_from_parts(cstr, strlen(cstr));
}
-char* cs_to_cstr(const_string str) {
- str.data[str.len] = '\0';
- return str.data;
-}
-
const_string cs_slice(const_string src, int from, int to) {
if (from > src.len) {
return src;