mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-16 11:21:18 +03: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:
@ -684,7 +684,6 @@ void String::replace(const String& find, const String& replace)
|
||||
}
|
||||
|
||||
void String::remove(unsigned int index){
|
||||
if (index >= len) { return; }
|
||||
int count = len - index;
|
||||
remove(index, count);
|
||||
}
|
||||
|
Reference in New Issue
Block a user