You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Add String::remove_char(s) methods for performance and convenience
This commit is contained in:
@@ -1594,8 +1594,8 @@ void Input::parse_mapping(const String &p_mapping) {
|
||||
continue;
|
||||
}
|
||||
|
||||
String output = entry[idx].get_slicec(':', 0).replace(" ", "");
|
||||
String input = entry[idx].get_slicec(':', 1).replace(" ", "");
|
||||
String output = entry[idx].get_slicec(':', 0).remove_char(' ');
|
||||
String input = entry[idx].get_slicec(':', 1).remove_char(' ');
|
||||
if (output.length() < 1 || input.length() < 2) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user