summaryrefslogtreecommitdiff
path: root/tools/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-12-15 12:02:39 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-12-17 09:35:24 +0000
commit0d5644bbe90e87ccd646276bfc545c3201caa005 (patch)
tree3f8870ee1ce05184db0c71b1d8b7fc08fa581177 /tools/source
parent2be589381e8e8969764e0de1ad079fca959afb8a (diff)
UniString::Fill -> OUStringBuffer::padToLength
none of these strings starts out before "Fill" longer than the size they are asked to be filled to so there are no trailing unfilled bits to consider all of which means that we can get rid of UniString::Fill now Change-Id: I8da21e9787017da9243a2c1d7118d3fbcca2a7fb
Diffstat (limited to 'tools/source')
-rw-r--r--tools/source/string/tustring.cxx30
1 files changed, 0 insertions, 30 deletions
diff --git a/tools/source/string/tustring.cxx b/tools/source/string/tustring.cxx
index 0beac79dba6a..f8fc18a0259f 100644
--- a/tools/source/string/tustring.cxx
+++ b/tools/source/string/tustring.cxx
@@ -237,36 +237,6 @@ StringCompare STRING::CompareIgnoreCaseToAscii( const STRING& rStr,
return COMPARE_GREATER;
}
-STRING& STRING::Fill( xub_StrLen nCount, STRCODE cFillChar )
-{
- DBG_CHKTHIS( STRING, DBGCHECKSTRING );
-
- if ( !nCount )
- return *this;
-
- // extend string if fill length is larger
- if ( nCount > mpData->mnLen )
- {
- // allocate string of new length
- STRINGDATA* pNewData = ImplAllocData( nCount );
- STRING_RELEASE((STRING_TYPE *)mpData);
- mpData = pNewData;
- }
- else
- ImplCopyData();
-
- STRCODE* pStr = mpData->maStr;
- do
- {
- *pStr = cFillChar;
- ++pStr,
- --nCount;
- }
- while ( nCount );
-
- return *this;
-}
-
STRCODE* STRING::GetBufferAccess()
{
DBG_CHKTHIS( STRING, DBGCHECKSTRING );