From 36f9e78ae75f5e14b132f37d249340ad3480b8ce Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 25 May 2011 10:01:22 +0300 Subject: [PATCH] Remove some dead functions --- source/utils.cpp | 42 ------------------------------------------ 1 file changed, 42 deletions(-) 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; -- 2.45.2