summaryrefslogtreecommitdiff
path: root/tools
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
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')
-rw-r--r--tools/inc/tools/string.hxx2
-rw-r--r--tools/source/string/tustring.cxx30
2 files changed, 0 insertions, 32 deletions
diff --git a/tools/inc/tools/string.hxx b/tools/inc/tools/string.hxx
index 674c36d46f65..03276c178c1d 100644
--- a/tools/inc/tools/string.hxx
+++ b/tools/inc/tools/string.hxx
@@ -227,8 +227,6 @@ public:
UniString& Erase( xub_StrLen nIndex = 0, xub_StrLen nCount = STRING_LEN );
UniString Copy( xub_StrLen nIndex = 0, xub_StrLen nCount = STRING_LEN ) const;
- UniString& Fill( xub_StrLen nCount, sal_Unicode cFillChar = ' ' );
-
UniString& ToLowerAscii();
UniString& ToUpperAscii();
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 );