diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-07-15 08:55:35 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-07-15 09:07:49 +0100 |
commit | c54f77b7180b271fecff3737bc391e19f050ec11 (patch) | |
tree | 1143e3d23b0478dd8600f4d44741df2a446f0b21 /forms | |
parent | 79aa0c50dae2ff6d143d99212d3a32a8ac28f306 (diff) |
callcatcher: update unused code
All FontSizeBoxs and SmFontPickListBoxs are now .ui loaded, .res ctors unused
Change-Id: I50aa8606fefacab0b15b6795a7ba90dff8109802
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/xforms/convert.cxx | 17 | ||||
-rw-r--r-- | forms/source/xforms/convert.hxx | 4 |
2 files changed, 0 insertions, 21 deletions
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 @@ -470,23 +470,6 @@ Convert::Any_t Convert::toAny( const OUString& rValue, } //------------------------------------------------------------------------ -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 ) { sal_Int32 nLength = _rString.getLength(); 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. */ |