summaryrefslogtreecommitdiffstats
path: root/tools/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-12-14 09:44:22 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-12-14 11:37:22 +0000
commit55b379495007d3d694fb3533baa0d607c710d582 (patch)
treeec72ee1650a487eeb0ba852c308f63ea85a00a7f /tools/source
parentUpdated core (diff)
downloadcore-55b379495007d3d694fb3533baa0d607c710d582.tar.gz
core-55b379495007d3d694fb3533baa0d607c710d582.zip
callcatcher: update unused code list
Change-Id: Ie975cd2df17461de1bb94a23d4daf081f6588fe7
Diffstat (limited to 'tools/source')
-rw-r--r--tools/source/string/tustring.cxx54
1 files changed, 0 insertions, 54 deletions
diff --git a/tools/source/string/tustring.cxx b/tools/source/string/tustring.cxx
index 898d2d899597..0beac79dba6a 100644
--- a/tools/source/string/tustring.cxx
+++ b/tools/source/string/tustring.cxx
@@ -320,16 +320,6 @@ STRCODE* STRING::AllocBuffer( xub_StrLen nLen )
return mpData->maStr;
}
-STRING::STRING( STRCODE c )
-{
- DBG_CTOR( STRING, DBGCHECKSTRING );
- DBG_ASSERT( c, "String::String() - c is 0" );
-
- // Initalize maintenance data
- mpData = ImplAllocData( 1 );
- mpData->maStr[0] = c;
-}
-
STRING& STRING::Insert( STRCODE c, xub_StrLen nIndex )
{
DBG_CHKTHIS( STRING, DBGCHECKSTRING );
@@ -677,50 +667,6 @@ STRING& STRING::Append( STRCODE c )
return *this;
}
-STRING& STRING::Assign( const STRCODE* pCharStr, xub_StrLen nLen )
-{
- DBG_CHKTHIS( STRING, DBGCHECKSTRING );
- DBG_ASSERT( pCharStr, "String::Assign() - pCharStr is NULL" );
-
- if ( nLen == STRING_LEN )
- nLen = ImplStringLen( pCharStr );
-
-#ifdef DBG_UTIL
- if ( DbgIsAssert() )
- {
- for ( xub_StrLen i = 0; i < nLen; i++ )
- {
- if ( !pCharStr[i] )
- {
- OSL_FAIL( "String::Assign() : nLen is wrong" );
- }
- }
- }
-#endif
-
- if ( !nLen )
- {
- STRING_NEW((STRING_TYPE **)&mpData);
- }
- else
- {
- // copy without allocation if string length is identical
- if ( (nLen == mpData->mnLen) && (mpData->mnRefCount == 1) )
- memcpy( mpData->maStr, pCharStr, nLen*sizeof( STRCODE ) );
- else
- {
- // free old string
- STRING_RELEASE((STRING_TYPE *)mpData);
-
- // allocate string of new size and copy
- mpData = ImplAllocData( nLen );
- memcpy( mpData->maStr, pCharStr, nLen*sizeof( STRCODE ) );
- }
- }
-
- return *this;
-}
-
STRING& STRING::Assign( STRCODE c )
{
DBG_CHKTHIS( STRING, DBGCHECKSTRING );