From 2719777a48418210563bf58199331eefe24969af Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Thu, 6 Jun 2013 15:37:04 +0200 Subject: String class: removed deep copy on substring method. Small code cleanup. --- cores/arduino/WString.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'cores/arduino/WString.cpp') diff --git a/cores/arduino/WString.cpp b/cores/arduino/WString.cpp index c6839fc..77bdd8a 100644 --- a/cores/arduino/WString.cpp +++ b/cores/arduino/WString.cpp @@ -527,11 +527,6 @@ int String::lastIndexOf(const String &s2, unsigned int fromIndex) const return found; } -String String::substring( unsigned int left ) const -{ - return substring(left, len); -} - String String::substring(unsigned int left, unsigned int right) const { if (left > right) { -- cgit v1.2.3-18-g5258