From: John L. <mov...@us...> - 2003-05-09 12:46:28
|
Update of /cvsroot/oprofile/oprofile/libutil++ In directory sc8-pr-cvs1:/tmp/cvs-serv28904/libutil++ Modified Files: Tag: pp-interface-branch string_manip.cpp string_manip.h Log Message: kill sample_filename Index: string_manip.cpp =================================================================== RCS file: /cvsroot/oprofile/oprofile/libutil++/string_manip.cpp,v retrieving revision 1.19 retrieving revision 1.19.2.1 diff -u -d -r1.19 -r1.19.2.1 --- string_manip.cpp 7 Apr 2003 02:23:58 -0000 1.19 +++ string_manip.cpp 9 May 2003 12:46:25 -0000 1.19.2.1 @@ -109,20 +109,6 @@ } -string sample_filename(string const& sample_dir, - string const& sample_filename, int counter) -{ - ostringstream s; - - s << sample_dir; - if (sample_dir.length() && sample_dir[sample_dir.length() - 1] != '/') - s << "/"; - s << sample_filename << '#' << counter; - - return s.str(); -} - - string ltrim(string const & str, string const & totrim) { string result; Index: string_manip.h =================================================================== RCS file: /cvsroot/oprofile/oprofile/libutil++/string_manip.h,v retrieving revision 1.16 retrieving revision 1.16.2.1 diff -u -d -r1.16 -r1.16.2.1 --- string_manip.h 6 Apr 2003 21:38:50 -0000 1.16 +++ string_manip.h 9 May 2003 12:46:25 -0000 1.16.2.1 @@ -63,20 +63,6 @@ void separate_token(std::vector<std::string> & result, std::string const & str, char sep); -/** - * sample_filename - build a sample filename - * @param sample_dir sample files directory - * @param sample_filename base name of sample file - * @param counter counter nr - * - * If sample_dir is empty return sample_filename + "#" + counter - * else return sample_dir + "/" + sample_filename + "#" + counter - * - * Existence of the samples files is not checked. - */ -std::string sample_filename(std::string const& sample_dir, - std::string const& sample_filename, int counter); - /// remove trim chars from start of input string return the new string std::string ltrim(std::string const & str, std::string const & totrim = "\t "); /// remove trim chars from end of input string return the new string |