summaryrefslogtreecommitdiff
path: root/core/string
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2021-11-11 09:08:08 +0100
committerRémi Verschelde <rverschelde@gmail.com>2021-11-11 11:23:32 +0100
commit2beaae4b6f1c4a2c3833a5e205157fd3be2fcabc (patch)
tree96b7ca74ef9f48ecba1181edb5ae85fca557242a /core/string
parent171a69757f575bbc55c686956097c7b4434ec1f8 (diff)
String: Remove `erase` method, bindings can't mutate String
Diffstat (limited to 'core/string')
-rw-r--r--core/string/ustring.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/core/string/ustring.cpp b/core/string/ustring.cpp
index 25c21486d6..4798cab641 100644
--- a/core/string/ustring.cpp
+++ b/core/string/ustring.cpp
@@ -952,10 +952,6 @@ const char32_t *String::get_data() const {
return size() ? &operator[](0) : &zero;
}
-void String::erase(int p_pos, int p_chars) {
- *this = left(MAX(p_pos, 0)) + substr(p_pos + p_chars, length() - ((p_pos + p_chars)));
-}
-
String String::capitalize() const {
String aux = this->camelcase_to_underscore(true).replace("_", " ").strip_edges();
String cap;