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:
Matthijs Kooijman 2014-03-16 11:14:56 +01:00
parent 82e04ba325
commit 2b90124e3d
1 changed files with 0 additions and 1 deletions

View File

@ -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);
}