summaryrefslogtreecommitdiff
path: root/tools/source/string/tustring.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-09-26 11:27:22 +0200
committerCaolán McNamara <caolanm@redhat.com>2013-09-27 11:16:11 +0200
commitb3a8056a499ca2a5cb809fcec52aebddd4e17f23 (patch)
tree176da629cc41ffba02616c8b8caf919da77eb9da /tools/source/string/tustring.cxx
parentb3c860acf3a9e0806f2e4451a6f8ceb74565f57d (diff)
Related: fdo#38838 remove UniString::SearchBackward
Change-Id: Ia474ee07b1bd411eae8cd1ddd55c4fa83dbd5f47
Diffstat (limited to 'tools/source/string/tustring.cxx')
-rw-r--r--tools/source/string/tustring.cxx21
1 files changed, 0 insertions, 21 deletions
diff --git a/tools/source/string/tustring.cxx b/tools/source/string/tustring.cxx
index 2a73396929b0..5d1d7e4e9cfd 100644
--- a/tools/source/string/tustring.cxx
+++ b/tools/source/string/tustring.cxx
@@ -235,27 +235,6 @@ xub_StrLen STRING::Match( const STRING& rStr ) const
return STRING_MATCH;
}
-xub_StrLen STRING::SearchBackward( STRCODE c, xub_StrLen nIndex ) const
-{
- DBG_CHKTHIS( STRING, DBGCHECKSTRING );
-
- if ( nIndex > mpData->mnLen )
- nIndex = (xub_StrLen)mpData->mnLen;
-
- const STRCODE* pStr = mpData->maStr;
- pStr += nIndex;
-
- while ( nIndex )
- {
- nIndex--;
- pStr--;
- if ( *pStr == c )
- return nIndex;
- }
-
- return STRING_NOTFOUND;
-}
-
void STRING::SearchAndReplaceAll( const STRING& rStr, const STRING& rRepStr )
{
DBG_CHKTHIS( STRING, DBGCHECKSTRING );