diff --git a/src/kits/support/String.cpp b/src/kits/support/String.cpp index e17c17cc34..f35b8a7a29 100644 --- a/src/kits/support/String.cpp +++ b/src/kits/support/String.cpp @@ -1963,8 +1963,7 @@ BString::CharacterDeescape(char escapeChar) BString& BString::Trim() { - size_t originalLength = Length(); - if (originalLength <= 0) + if (Length() <= 0) return *this; const char* string = String();