From 77faf36fbd79edfe360e2b9e5393b3d979a4e0d3 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 20 Jun 2011 14:25:08 +0100 Subject: remove unused strip_ methods --- cosv/inc/cosv/streamstr.hxx | 4 ---- cosv/source/strings/streamstr.cxx | 20 -------------------- 2 files changed, 24 deletions(-) (limited to 'cosv') diff --git a/cosv/inc/cosv/streamstr.hxx b/cosv/inc/cosv/streamstr.hxx index 649c2c1ffc55..67a69b24791a 100644 --- a/cosv/inc/cosv/streamstr.hxx +++ b/cosv/inc/cosv/streamstr.hxx @@ -212,10 +212,6 @@ class StreamStr : public bostream self & operator_read_line( bstream & i_src ); - void strip_front( - char i_cToRemove ); - void strip_back( - char i_cToRemove ); void strip_front_whitespace(); /// removes space, tab and crlf. void strip_back_whitespace(); void strip_frontback_whitespace(); diff --git a/cosv/source/strings/streamstr.cxx b/cosv/source/strings/streamstr.cxx index fff564f6fff6..c1a0d62a0786 100644 --- a/cosv/source/strings/streamstr.cxx +++ b/cosv/source/strings/streamstr.cxx @@ -560,26 +560,6 @@ StreamStr::operator_read_line( bstream & i_src ) return *this; } -void -StreamStr::strip_front(char i_cToRemove) -{ - const_iterator it = begin(); - for ( ; - it != end() ? *it == i_cToRemove : false; - ++it ) ; - pop_front(it - begin()); -} - -void -StreamStr::strip_back(char i_cToRemove) -{ - const_iterator it = end(); - for ( ; - it != begin() ? *(it-1) == i_cToRemove : false; - --it ) ; - pop_back(end() - it); -} - void StreamStr::strip_front_whitespace() { -- cgit