aboutsummaryrefslogtreecommitdiff
path: root/cores
diff options
context:
space:
mode:
authorMatthijs Kooijman <matthijs@stdin.nl>2014-03-16 11:14:56 +0100
committerMatthijs Kooijman <matthijs@stdin.nl>2014-09-10 12:33:24 +0200
commitdfb0dee773bb7e9f44348ca518292435e9148eba (patch)
tree61d40623481b84281319c666c682a5caa6b7ebcd /cores
parentf02d637a89c1ac15ee16acc36ed02025f781c4e3 (diff)
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.
Diffstat (limited to 'cores')
-rw-r--r--cores/arduino/WString.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/cores/arduino/WString.cpp b/cores/arduino/WString.cpp
index ed880ce..a0a3b6c 100644
--- a/cores/arduino/WString.cpp
+++ b/cores/arduino/WString.cpp
@@ -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);
}