From 38fea22431aeddbaf286a27c228be570938579af Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 9 Jun 2012 14:02:16 +0100 Subject: removeTrailingChars is the same as stripEnd Change-Id: I3fc618f886082e08e9baae3ae09017f653e729bd --- comphelper/inc/comphelper/string.hxx | 3 --- comphelper/source/misc/string.cxx | 12 ------------ 2 files changed, 15 deletions(-) (limited to 'comphelper') diff --git a/comphelper/inc/comphelper/string.hxx b/comphelper/inc/comphelper/string.hxx index 499e8504dd09..8a763e85e2f8 100644 --- a/comphelper/inc/comphelper/string.hxx +++ b/comphelper/inc/comphelper/string.hxx @@ -318,9 +318,6 @@ COMPHELPER_DLLPUBLIC inline rtl::OUStringBuffer& padToLength( return detail::padToLength(rBuffer, nLength, cFill); } -COMPHELPER_DLLPUBLIC rtl::OUString removeTrailingChars( - const rtl::OUString& rStr, sal_Unicode cChar); - /** Convert a sequence of strings to a single comma separated string. Note that no escaping of commas or anything fancy is done. diff --git a/comphelper/source/misc/string.cxx b/comphelper/source/misc/string.cxx index 08aa392dcd82..84a5c9c86c19 100644 --- a/comphelper/source/misc/string.cxx +++ b/comphelper/source/misc/string.cxx @@ -246,18 +246,6 @@ sal_uInt32 decimalStringToNumber( return result; } -rtl::OUString removeTrailingChars(const rtl::OUString& rStr, sal_Unicode cChar) -{ - sal_Int32 n = rStr.getLength(); - const sal_Unicode* p = &rStr.getStr()[n-1]; // last char - while (n > 0 && *p == cChar) - { - --p; - --n; - } - return rStr.copy(0, n); -} - using namespace ::com::sun::star; // convert between sequence of string and comma separated string -- cgit