aboutsummaryrefslogtreecommitdiff
path: root/src/string.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-02-28 15:08:50 +0000
committergingerBill <bill@gingerbill.org>2022-02-28 15:08:50 +0000
commit09e4fff5b18a314876c5f5d79f01cdd90aed7362 (patch)
tree1829aa86653775193e88df3abc7d502e25f11f5a /src/string.cpp
parent2d89faa17cf88b76e183e35f4d50722271c76d20 (diff)
`-target-features:<string>`
This just passes a string directly to the LLVM features string
Diffstat (limited to 'src/string.cpp')
-rw-r--r--src/string.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/string.cpp b/src/string.cpp
index bcaf23b9b..d3dbc6904 100644
--- a/src/string.cpp
+++ b/src/string.cpp
@@ -10,10 +10,6 @@ struct String {
u8 * text;
isize len;
- // u8 &operator[](isize i) {
- // GB_ASSERT_MSG(0 <= i && i < len, "[%td]", i);
- // return text[i];
- // }
u8 const &operator[](isize i) const {
GB_ASSERT_MSG(0 <= i && i < len, "[%td]", i);
return text[i];
@@ -33,10 +29,6 @@ struct String {
struct String16 {
wchar_t *text;
isize len;
- wchar_t &operator[](isize i) {
- GB_ASSERT_MSG(0 <= i && i < len, "[%td]", i);
- return text[i];
- }
wchar_t const &operator[](isize i) const {
GB_ASSERT_MSG(0 <= i && i < len, "[%td]", i);
return text[i];