summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-07-02 09:14:03 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-07-02 11:59:53 +0100
commitfae7447283142b359c9f9ea80c3cc79ceab52e2c (patch)
tree46b21479fc5f5e55cd32ac72b2e7f597a9c7f5bf /forms
parent9eeacd275178f5fed34ee9debf431a1ac3e169cc (diff)
drop unused convertWhitespace
Change-Id: I2e27e498cb86d5aaeff692e62e75ee8c8200e729
Diffstat (limited to 'forms')
-rw-r--r--forms/source/xforms/convert.cxx22
-rw-r--r--forms/source/xforms/convert.hxx16
2 files changed, 0 insertions, 38 deletions
diff --git a/forms/source/xforms/convert.cxx b/forms/source/xforms/convert.cxx
index 285b3a7d1f88..b1bda6ead3e1 100644
--- a/forms/source/xforms/convert.cxx
+++ b/forms/source/xforms/convert.cxx
@@ -470,28 +470,6 @@ Convert::Any_t Convert::toAny( const OUString& rValue,
}
//------------------------------------------------------------------------
-OUString Convert::convertWhitespace( const OUString& _rString, sal_Int16 _nWhitespaceTreatment )
-{
- OUString sConverted;
- switch( _nWhitespaceTreatment )
- {
- default:
- OSL_FAIL( "Convert::convertWhitespace: invalid whitespace treatment constant!" );
- // NO break
- case com::sun::star::xsd::WhiteSpaceTreatment::Preserve:
- sConverted = _rString;
- break;
- case com::sun::star::xsd::WhiteSpaceTreatment::Replace:
- sConverted = replaceWhitespace( _rString );
- break;
- case com::sun::star::xsd::WhiteSpaceTreatment::Collapse:
- sConverted = collapseWhitespace( _rString );
- break;
- }
- return sConverted;
-}
-
-//------------------------------------------------------------------------
OUString Convert::replaceWhitespace( const OUString& _rString )
{
OUStringBuffer aBuffer( _rString );
diff --git a/forms/source/xforms/convert.hxx b/forms/source/xforms/convert.hxx
index 8da1090d1bf4..f3fa5243c9d5 100644
--- a/forms/source/xforms/convert.hxx
+++ b/forms/source/xforms/convert.hxx
@@ -72,22 +72,6 @@ public:
/// convert XML representation to Any of given type
Any_t toAny( const OUString&, const Type_t& );
- /** translates the whitespaces in a given string, according
- to a given <type scope="com::sun::star::xsd">WhiteSpaceTreatment</type>.
-
- @param _rString
- the string to convert
- @param _nWhitespaceTreatment
- a constant from the <type scope="com::sun::star::xsd">WhiteSpaceTreatment</type> group, specifying
- how to handle whitespaces
- @return
- the converted string
- */
- static OUString convertWhitespace(
- const OUString& _rString,
- sal_Int16 _nWhitespaceTreatment
- );
-
/** replace all occurrences 0x08, 0x0A, 0x0D with 0x20
*/
static OUString replaceWhitespace( const OUString& _rString );