aboutsummaryrefslogtreecommitdiff
path: root/src/string.cpp
diff options
context:
space:
mode:
authorCiD- <jkercher43@gmail.com>2022-03-14 13:36:22 -0400
committerCiD- <jkercher43@gmail.com>2022-03-14 13:36:22 -0400
commit1f4e5e919f94b53ea2ed9292b4a9a33488026fcf (patch)
treea073ea401866d4d4a1b83ea819de9c2c2e3893e2 /src/string.cpp
parentc293e88f2e31bfed896ddba701bdc2629497005a (diff)
parent1d147ba99339afbef47bf689a0e0d7591a33c633 (diff)
merge upstream/master
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];