From 1936743fd91f9c2f2f6eba51efdef5b0d30fd5f1 Mon Sep 17 00:00:00 2001 From: "Joachim Wuttke (h)" <j.wuttke@fz-juelich.de> Date: Wed, 10 May 2023 15:45:59 +0200 Subject: [PATCH] rm unused templated fct 'scientific' --- Base/Util/StringUtil.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/Base/Util/StringUtil.h b/Base/Util/StringUtil.h index 915a221a0a6..5e586855c7e 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 -- GitLab