diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-13 23:31:03 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-14 09:54:09 +0100 |
commit | 4a3db11077e18d58dc79af5178f5b8dbb2ebe160 (patch) | |
tree | 42b85de8624c42ac5696e3ca3ea988cb57865a33 /tools | |
parent | use read_uInt8s_AsOString here (diff) | |
download | core-4a3db11077e18d58dc79af5178f5b8dbb2ebe160.tar.gz core-4a3db11077e18d58dc79af5178f5b8dbb2ebe160.zip |
ImplUpdateStringFromUniString is now dangling
Diffstat (limited to 'tools')
-rw-r--r-- | tools/inc/tools/string.hxx | 2 | ||||
-rw-r--r-- | tools/source/string/strcvt.cxx | 14 |
2 files changed, 0 insertions, 16 deletions
diff --git a/tools/inc/tools/string.hxx b/tools/inc/tools/string.hxx index 40bf4e45fe72..bb674a60cba1 100644 --- a/tools/inc/tools/string.hxx +++ b/tools/inc/tools/string.hxx @@ -159,8 +159,6 @@ private: TOOLS_DLLPRIVATE inline void ImplCopyData(); TOOLS_DLLPRIVATE inline char * ImplCopyStringData(char *); - TOOLS_DLLPRIVATE void ImplUpdateStringFromUniString( - sal_Unicode const *, sal_Size, rtl_TextEncoding, sal_uInt32); ByteString( const int* pDummy ); // not implemented: to prevent ByteString( NULL ) ByteString(int); // not implemented; to detect misuses diff --git a/tools/source/string/strcvt.cxx b/tools/source/string/strcvt.cxx index b22685df90ce..f66fd14bde47 100644 --- a/tools/source/string/strcvt.cxx +++ b/tools/source/string/strcvt.cxx @@ -28,20 +28,6 @@ // no include "precompiled_tools.hxx" because this is included in other cxx files. -// ----------------------------------------------------------------------- - -void ByteString::ImplUpdateStringFromUniString( - const sal_Unicode* pUniStr, sal_Size nUniLen, - rtl_TextEncoding eTextEncoding, sal_uInt32 nCvtFlags ) -{ - ByteStringData* pNewStringData = NULL; - rtl_uString2String( (rtl_String **)(&pNewStringData), - pUniStr, nUniLen, - eTextEncoding, nCvtFlags ); - STRING_RELEASE((STRING_TYPE *)mpData); - mpData = pNewStringData; -} - // ======================================================================= ByteString::ByteString( const UniString& rUniStr, rtl_TextEncoding eTextEncoding, sal_uInt32 nCvtFlags ) |