summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-09-08 14:52:59 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-09-08 14:52:59 +0100
commitce9c390e1a100921fd4300d6acb602b4af2b7003 (patch)
tree90e3be5f1fab209aed9ec63abd24dd17c2d25a04 /tools
parent3b21a1657b314b72049e8881d7f21cf56fb72484 (diff)
Related: fdo#38838 String::ReleaseBufferAccess is now no more
Change-Id: Ib5390183e3d98a23f9243debfe3624561ca92535
Diffstat (limited to 'tools')
-rw-r--r--tools/source/string/tustring.cxx25
1 files changed, 0 insertions, 25 deletions
diff --git a/tools/source/string/tustring.cxx b/tools/source/string/tustring.cxx
index f3bb24f09ab5..a23f0fcfa766 100644
--- a/tools/source/string/tustring.cxx
+++ b/tools/source/string/tustring.cxx
@@ -240,31 +240,6 @@ STRCODE* STRING::GetBufferAccess()
return mpData->maStr;
}
-void STRING::ReleaseBufferAccess( xub_StrLen nLen )
-{
- // String not consinstent, thus no functionality test
- DBG_CHKTHIS( STRING, NULL );
- DBG_ASSERT( mpData->mnRefCount == 1, "String::ReleaseCharStr() called for String with RefCount" );
-
- if ( nLen > mpData->mnLen )
- nLen = ImplStringLen( mpData->maStr );
- OSL_ASSERT(nLen <= mpData->mnLen);
- if ( !nLen )
- {
- STRING_NEW((STRING_TYPE **)&mpData);
- }
- // shorten buffer is difference > 8 chars
- else if ( mpData->mnLen - nLen > 8 )
- {
- STRINGDATA* pNewData = ImplAllocData( nLen );
- memcpy( pNewData->maStr, mpData->maStr, nLen*sizeof( STRCODE ) );
- STRING_RELEASE((STRING_TYPE *)mpData);
- mpData = pNewData;
- }
- else
- mpData->mnLen = nLen;
-}
-
STRING& STRING::Insert( STRCODE c, xub_StrLen nIndex )
{
DBG_CHKTHIS( STRING, DBGCHECKSTRING );