diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-02-08 09:12:05 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-02-08 09:12:27 +0000 |
commit | 849a2471bd649b252648fa4e43be91dab4d9bdc5 (patch) | |
tree | df146e6687298ab0b9c4eb2c21004ae436009e7e /sax | |
parent | 2cae4ff166ad5ad51db49d6b0fab86b2c8090fb8 (diff) |
update unused list
Diffstat (limited to 'sax')
-rw-r--r-- | sax/inc/sax/tools/converter.hxx | 2 | ||||
-rw-r--r-- | sax/source/tools/converter.cxx | 16 |
2 files changed, 0 insertions, 18 deletions
diff --git a/sax/inc/sax/tools/converter.hxx b/sax/inc/sax/tools/converter.hxx index 9883dabdfef6..1fed19eb3bb3 100644 --- a/sax/inc/sax/tools/converter.hxx +++ b/sax/inc/sax/tools/converter.hxx @@ -210,8 +210,6 @@ public: static sal_Int32 decodeBase64SomeChars(com::sun::star::uno::Sequence<sal_Int8>& aPass, const rtl::OUString& sBuffer); - static void clearUndefinedChars(rtl::OUString& rTarget, const rtl::OUString& rSource); - static double GetConversionFactor(::rtl::OUStringBuffer& rUnit, sal_Int16 nSourceUnit, sal_Int16 nTargetUnit); static sal_Int16 GetUnitFromString(const ::rtl::OUString& rString, sal_Int16 nDefaultUnit); diff --git a/sax/source/tools/converter.cxx b/sax/source/tools/converter.cxx index 698dea826ba2..8d573e2e3f64 100644 --- a/sax/source/tools/converter.cxx +++ b/sax/source/tools/converter.cxx @@ -1787,22 +1787,6 @@ sal_Int32 Converter::decodeBase64SomeChars( return nCharsDecoded; } -void Converter::clearUndefinedChars(rtl::OUString& rTarget, const rtl::OUString& rSource) -{ - sal_uInt32 nLength(rSource.getLength()); - rtl::OUStringBuffer sBuffer(nLength); - for (sal_uInt32 i = 0; i < nLength; i++) - { - sal_Unicode cChar = rSource[i]; - if (!(cChar < 0x0020) || - (cChar == 0x0009) || // TAB - (cChar == 0x000A) || // LF - (cChar == 0x000D)) // legal character - sBuffer.append(cChar); - } - rTarget = sBuffer.makeStringAndClear(); -} - double Converter::GetConversionFactor(::rtl::OUStringBuffer& rUnit, sal_Int16 nSourceUnit, sal_Int16 nTargetUnit) { double fRetval(1.0); |