aboutsummaryrefslogtreecommitdiff
path: root/src/string.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-12-18 22:49:10 +0000
committergingerBill <bill@gingerbill.org>2022-12-18 22:49:10 +0000
commitc1f5be24e28c41efbbbe6d116d533b55d48bbf82 (patch)
treec000ca55e7b69ea39a6e3a32714690b350708414 /src/string.cpp
parent6cdec65ca1fd13a4d86d83a6715cbaaff7115cd7 (diff)
Remove dead code in the compiler
Diffstat (limited to 'src/string.cpp')
-rw-r--r--src/string.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/string.cpp b/src/string.cpp
index aeb31c7b0..8cce0f1ef 100644
--- a/src/string.cpp
+++ b/src/string.cpp
@@ -89,14 +89,6 @@ gb_internal char *alloc_cstring(gbAllocator a, String s) {
return c_str;
}
-gb_internal char *cstring_duplicate(gbAllocator a, char const *s) {
- isize len = gb_strlen(s);
- char *c_str = gb_alloc_array(a, char, len+1);
- gb_memmove(c_str, s, len);
- c_str[len] = '\0';
- return c_str;
-}
-
gb_internal gb_inline bool str_eq_ignore_case(String const &a, String const &b) {
@@ -166,12 +158,6 @@ gb_internal isize string_index_byte(String const &s, u8 x) {
return -1;
}
-gb_internal GB_COMPARE_PROC(string_cmp_proc) {
- String x = *(String *)a;
- String y = *(String *)b;
- return string_compare(x, y);
-}
-
gb_internal gb_inline bool str_eq(String const &a, String const &b) {
if (a.len != b.len) return false;
return memcmp(a.text, b.text, a.len) == 0;