From: Mikko Rasa Date: Wed, 25 May 2011 07:01:22 +0000 (+0300) Subject: Remove some dead functions X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=commitdiff_plain;h=36f9e78ae75f5e14b132f37d249340ad3480b8ce Remove some dead functions --- diff --git a/source/utils.cpp b/source/utils.cpp index 675a2b1..5a6bccd 100644 --- a/source/utils.cpp +++ b/source/utils.cpp @@ -127,48 +127,6 @@ vector split_fields(const string &str, char sep, int max_split) return split_fields(str, string(1, sep), max_split); } -/** -Splits a string to parts. - -@param str String to be split -@param sep A set of separator characters -@param allow_empty Whether or not to produce empty parts for sequences of - more than one separator character -*/ -vector split(const string &str, const string &sep, bool allow_empty) -{ - vector result; - - string::size_type start=0; - if(!allow_empty) - start=str.find_first_not_of(sep); - - while(start split(const string &str, char sep, bool allow_empty) -{ - return split(str, string(1, sep), allow_empty); -} - string strip(const string &s) { string result=s;