Remove now superfluos check from String's operator[].

This commit is contained in:
Relintai 2022-12-22 20:03:28 +01:00
parent 91c50d4bea
commit 4fb7856b5a

View File

@ -231,10 +231,6 @@ public:
}
_FORCE_INLINE_ const CharType &operator[](int p_index) const {
if (unlikely(p_index == _cowdata.size())) {
return _null;
}
return _cowdata.get(p_index);
}
_FORCE_INLINE_ CharProxy<CharType> operator[](int p_index) { return CharProxy<CharType>(p_index, _cowdata); }