1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Rename remove() to remove_at() when removing by index

This commit is contained in:
Lightning_A
2021-07-03 16:17:03 -06:00
committed by Aaron Record
parent 5efe80f308
commit e078f970db
134 changed files with 323 additions and 323 deletions

View File

@@ -3670,15 +3670,15 @@ String String::simplify_path() const {
for (int i = 0; i < dirs.size(); i++) {
String d = dirs[i];
if (d == ".") {
dirs.remove(i);
dirs.remove_at(i);
i--;
} else if (d == "..") {
if (i == 0) {
dirs.remove(i);
dirs.remove_at(i);
i--;
} else {
dirs.remove(i);
dirs.remove(i - 1);
dirs.remove_at(i);
dirs.remove_at(i - 1);
i -= 2;
}
}