summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-10-21 14:32:36 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-10-21 19:29:17 +0100
commitcfda947d7c0476b9c402c84f9d8515c76ec87bac (patch)
treefd66daae76b321a05a3b81c3318a5b6546969efb /tools
parentffd0e2911023e684ca1e206d18b45ef5aa6179f9 (diff)
Related: fdo#38838 remove UniString::Copy
Change-Id: I566e3ade54962bbc6ace9b757f79c1b8ed9ffd00
Diffstat (limited to 'tools')
-rw-r--r--tools/source/string/strimp.cxx34
1 files changed, 0 insertions, 34 deletions
diff --git a/tools/source/string/strimp.cxx b/tools/source/string/strimp.cxx
index a3e44fa39ff5..de479e450669 100644
--- a/tools/source/string/strimp.cxx
+++ b/tools/source/string/strimp.cxx
@@ -94,40 +94,6 @@ STRING::STRING( const STRING& rStr )
mpData = rStr.mpData;
}
-STRING::STRING( const STRING& rStr, xub_StrLen nPos, xub_StrLen nLen )
-: mpData( NULL )
-{
- if ( nPos > rStr.mpData->mnLen )
- nLen = 0;
- else
- {
- // correct length if necessary
- sal_Int32 nMaxLen = rStr.mpData->mnLen-nPos;
- if ( nLen > nMaxLen )
- nLen = static_cast< xub_StrLen >(nMaxLen);
- }
-
- if ( nLen )
- {
- // Increase reference counter if it suffices
- if ( (nPos == 0) && (nLen == rStr.mpData->mnLen) )
- {
- STRING_ACQUIRE((STRING_TYPE *)rStr.mpData);
- mpData = rStr.mpData;
- }
- else
- {
- // otherwise, copy string
- mpData = ImplAllocData( nLen );
- memcpy( mpData->maStr, rStr.mpData->maStr+nPos, nLen*sizeof( STRCODE ) );
- }
- }
- else
- {
- STRING_NEW((STRING_TYPE **)&mpData);
- }
-}
-
STRING::~STRING()
{
// free string data