summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-06-20 14:15:54 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-06-20 14:15:54 +0100
commit63b9ad1c6142c7f1b34a180a0bac021d2a403927 (patch)
tree3574d3b5fd50a3a291ffec1361ec69117edd1b70
parentf2e4eb17f5c99e7d6cdab0c479a371b9d8a139ed (diff)
remove the unused replace_all variant
-rw-r--r--cosv/inc/cosv/streamstr.hxx3
-rw-r--r--cosv/source/strings/streamstr.cxx22
2 files changed, 0 insertions, 25 deletions
diff --git a/cosv/inc/cosv/streamstr.hxx b/cosv/inc/cosv/streamstr.hxx
index 04914ea3..b5c62d00 100644
--- a/cosv/inc/cosv/streamstr.hxx
+++ b/cosv/inc/cosv/streamstr.hxx
@@ -235,9 +235,6 @@ class StreamStr : public bostream
void replace_all(
char i_cCarToSearch,
char i_cReplacement );
- void replace_all(
- Area i_aStrToSearch,
- Area i_aReplacement );
StreamStr & to_upper(
position_type i_nStart = 0,
diff --git a/cosv/source/strings/streamstr.cxx b/cosv/source/strings/streamstr.cxx
index 32f35b02..4d494882 100644
--- a/cosv/source/strings/streamstr.cxx
+++ b/cosv/source/strings/streamstr.cxx
@@ -668,28 +668,6 @@ StreamStr::replace_all( char i_cCarToSearch,
}
}
-void
-StreamStr::replace_all( Area i_aStrToSearch,
- Area i_aReplacement )
-{
- position_type p = 0;
- const char * pSearch = i_aStrToSearch.sStr;
- size_type nSearch = i_aStrToSearch.nLength;
-
- while ( p <= length() - nSearch )
- {
- if ( strncmp(dpData+p, pSearch, nSearch) == 0 )
- {
- replace( p, nSearch, i_aReplacement );
- p += i_aReplacement.nLength;
- }
- else
- {
- ++p;
- }
- } // end while
-}
-
StreamStr &
StreamStr::to_upper( position_type i_nStart,
size_type i_nLength )