diff options
author | David A. Mellis <d.mellis@arduino.cc> | 2010-11-29 15:14:10 -0500 |
---|---|---|
committer | David A. Mellis <d.mellis@arduino.cc> | 2010-11-29 15:14:10 -0500 |
commit | 80c5173bfd304e91e688ade4dd650efb7d35c2ee (patch) | |
tree | c3b55b5688d873b452b648e6a2cab9d17099e0ec /cores/arduino/WString.cpp | |
parent | 15f51fc1f804a86928448f5a54a2850a291cfc73 (diff) |
Revert "added toInt() function to WString".
This reverts commit 448222e4b65e0cf44dfc0c494f7f76901f1fabea.
Diffstat (limited to 'cores/arduino/WString.cpp')
-rw-r--r-- | cores/arduino/WString.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/cores/arduino/WString.cpp b/cores/arduino/WString.cpp index b13123b..2718956 100644 --- a/cores/arduino/WString.cpp +++ b/cores/arduino/WString.cpp @@ -434,19 +434,3 @@ void String::toCharArray(char *buf, unsigned int bufsize) strncpy(buf, _buffer, len); buf[len] = 0; } - - -long String::toInt() { - String temp = _buffer; - long value = 0; - - for (unsigned int charPos = 0; charPos < _length; charPos++) { - int thisChar = temp[charPos]; - if (isdigit(thisChar)) { - value *= 10; - value += (thisChar - '0'); - } - } - - return value; -} |