diff --git a/Base/Util/StringUtil.h b/Base/Util/StringUtil.h index 915a221a0a6cf2923b0e74e858edb6b1a6fcd059..5e586855c7e6e1a1deec1cbff44ab19d154119e9 100644 --- a/Base/Util/StringUtil.h +++ b/Base/Util/StringUtil.h @@ -39,10 +39,6 @@ void replaceItemsFromString(std::string& text, const std::vector<std::string>& i //! Returns string obtain by joining vector elements std::string join(const std::vector<std::string>& joinable, const std::string& joint); -//! Returns scientific string representing given value of any numeric type. -template <typename T> -std::string scientific(T value, int n = 10); - //! Returns new string which is lower case of text. std::string to_lower(std::string text); @@ -69,12 +65,4 @@ bool startsWith(const std::string& str, const std::string& substr); } // namespace BaseUtil::String -template <typename T> -std::string BaseUtil::String::scientific(const T value, int n) -{ - std::ostringstream out; - out << std::scientific << std::setprecision(n) << value; - return out.str(); -} - #endif // BORNAGAIN_BASE_UTIL_STRINGUTIL_H