From c54f77b7180b271fecff3737bc391e19f050ec11 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 15 Jul 2013 08:55:35 +0100 Subject: callcatcher: update unused code All FontSizeBoxs and SmFontPickListBoxs are now .ui loaded, .res ctors unused Change-Id: I50aa8606fefacab0b15b6795a7ba90dff8109802 --- forms/source/xforms/convert.cxx | 17 ----------------- forms/source/xforms/convert.hxx | 4 ---- 2 files changed, 21 deletions(-) (limited to 'forms') diff --git a/forms/source/xforms/convert.cxx b/forms/source/xforms/convert.cxx index b1bda6ead3e1..a89ef2bedf7d 100644 --- a/forms/source/xforms/convert.cxx +++ b/forms/source/xforms/convert.cxx @@ -469,23 +469,6 @@ Convert::Any_t Convert::toAny( const OUString& rValue, return aIter != maMap.end() ? aIter->second.second( rValue ) : Any_t(); } -//------------------------------------------------------------------------ -OUString Convert::replaceWhitespace( const OUString& _rString ) -{ - OUStringBuffer aBuffer( _rString ); - sal_Int32 nLength = aBuffer.getLength(); - const sal_Unicode* pBuffer = aBuffer.getStr(); - for( sal_Int32 i = 0; i < nLength; i++ ) - { - sal_Unicode c = pBuffer[i]; - if( c == sal_Unicode(0x08) || - c == sal_Unicode(0x0A) || - c == sal_Unicode(0x0D) ) - aBuffer[i] = sal_Unicode(0x20); - } - return aBuffer.makeStringAndClear(); -} - //------------------------------------------------------------------------ OUString Convert::collapseWhitespace( const OUString& _rString ) { diff --git a/forms/source/xforms/convert.hxx b/forms/source/xforms/convert.hxx index f3fa5243c9d5..3e19e3c61a78 100644 --- a/forms/source/xforms/convert.hxx +++ b/forms/source/xforms/convert.hxx @@ -72,10 +72,6 @@ public: /// convert XML representation to Any of given type Any_t toAny( const OUString&, const Type_t& ); - /** replace all occurrences 0x08, 0x0A, 0x0D with 0x20 - */ - static OUString replaceWhitespace( const OUString& _rString ); - /** replace all sequences of 0x08, 0x0A, 0x0D, 0x20 with a single 0x20. also strip leading/trailing whitespace. */ -- cgit v1.2.3