String: Remove erase method, bindings can't mutate String

This commit is contained in:
Rémi Verschelde 2021-11-11 09:08:08 +01:00
parent 171a69757f
commit 2beaae4b6f
No known key found for this signature in database
GPG key ID: C3336907360768E1
10 changed files with 24 additions and 41 deletions

View file

@ -115,7 +115,7 @@ static void handle_crash(int sig) {
int ret;
Error err = OS::get_singleton()->execute(String("addr2line"), args, &output, &ret);
if (err == OK) {
output.erase(output.length() - 1, 1);
output = output.substr(0, output.length() - 1);
}
fprintf(stderr, "[%ld] %s (%s)\n", (long int)i, fname, output.utf8().get_data());