mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-18 07:52:14 +01:00
Remove unneeded check in String::remove(unsigned int)
This check already happens in the remove(unsigned int, unsigned int) method that is caled, so there is no need to also check this here.
This commit is contained in:
parent
82e04ba325
commit
2b90124e3d
@ -684,7 +684,6 @@ void String::replace(const String& find, const String& replace)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void String::remove(unsigned int index){
|
void String::remove(unsigned int index){
|
||||||
if (index >= len) { return; }
|
|
||||||
int count = len - index;
|
int count = len - index;
|
||||||
remove(index, count);
|
remove(index, count);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user