Revert "restore join_string() symbols in library"
[libi2ncommon] / src / stringfunc.cpp
index 72de728..d611abf 100644 (file)
@@ -430,55 +430,6 @@ std::list<std::string> split_string(
 } // eo split_string(const std::string&,const std::string&,bool,const std::string&)
 
 
-/**
- * @brief joins a list of strings into a single string.
- *
- * This funtion is (basically) the reverse operation of @a split_string.
- *
- * @param parts the list of strings.
- * @param delimiter the delimiter which is inserted between the strings.
- * @return the joined string.
- */
-std::string join_string(
-   const std::list< std::string >& parts,
-   const std::string& delimiter
-)
-{
-   std::string result;
-   if (! parts.empty() )
-   {
-      std::list< std::string >::const_iterator it= parts.begin();
-      result = *it;
-      while ( ++it != parts.end() )
-      {
-         result+= delimiter;
-         result+= *it;
-      }
-   }
-   return result;
-} // eo join_string(const std::list< std::string >&,const std::string&)
-
-
-/** @brief same as join_string for list, except uses a vector */
-std::string join_string(
-   const std::vector< std::string >& parts,
-   const std::string& delimiter
-)
-{
-   std::string result;
-   if (! parts.empty() )
-   {
-      std::vector< std::string >::const_iterator it= parts.begin();
-      result = *it;
-      while ( ++it != parts.end() )
-      {
-         result+= delimiter;
-         result+= *it;
-      }
-   }
-   return result;
-} // eo join_string(const std::vector< std::string >&,const std::string&)
-
 std::string join_string (
    const char *const parts[], /* assumed NULL-terminated */
    const std::string& delimiter