[Libreoffice-commits] .: binfilter/bf_svtools binfilter/inc

Caolán McNamara caolan at kemper.freedesktop.org
Mon Feb 13 03:03:27 PST 2012


 binfilter/bf_svtools/source/misc/tl_strucvt.cxx |   16 ----------------
 binfilter/inc/bf_tools/string.hxx               |    2 --
 2 files changed, 18 deletions(-)

New commits:
commit 34eccca5a0c9f2f7e0e1bc655ad0195a5d69c1ed
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Feb 13 10:20:54 2012 +0000

    drop InitStringRes

diff --git a/binfilter/bf_svtools/source/misc/tl_strucvt.cxx b/binfilter/bf_svtools/source/misc/tl_strucvt.cxx
index d5bc082..00d2869 100644
--- a/binfilter/bf_svtools/source/misc/tl_strucvt.cxx
+++ b/binfilter/bf_svtools/source/misc/tl_strucvt.cxx
@@ -31,22 +31,6 @@ namespace binfilter
 
 // =======================================================================
 
-void UniString::InitStringRes( const char* pUTF8Str, sal_Int32 nLen )
-{
-    DBG_CTOR( UniString, DbgCheckUniString );
-    OSL_ENSURE(nLen <= STRING_MAXLEN, "Overflowing UniString");
-
-    mpData = NULL;
-    rtl_string2UString( (rtl_uString **)(&mpData),
-                        pUTF8Str, nLen,
-                        RTL_TEXTENCODING_UTF8,
-                        RTL_TEXTTOUNICODE_FLAGS_UNDEFINED_MAPTOPRIVATE |
-                        RTL_TEXTTOUNICODE_FLAGS_MBUNDEFINED_DEFAULT |
-                        RTL_TEXTTOUNICODE_FLAGS_INVALID_DEFAULT );
-}
-
-// =======================================================================
-
 UniString::UniString( const ByteString& rByteStr, rtl_TextEncoding eTextEncoding, sal_uInt32 nCvtFlags )
 {
     DBG_CTOR( UniString, DbgCheckUniString );
diff --git a/binfilter/inc/bf_tools/string.hxx b/binfilter/inc/bf_tools/string.hxx
index 3c2cd96..cb28021 100644
--- a/binfilter/inc/bf_tools/string.hxx
+++ b/binfilter/inc/bf_tools/string.hxx
@@ -354,8 +354,6 @@ class TOOLS_DLLPUBLIC UniString
 {
     friend              class ByteString;
 
-    TOOLS_DLLPRIVATE void InitStringRes( const sal_Char* pUTF8Str, sal_Int32 nLen );
-
 private:
     UniStringData*      mpData;
 


More information about the Libreoffice-commits mailing list