From beeaa21644b2dd240d2d3f78181b2f8588b76a67 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Wed, 2 Apr 2014 15:26:42 +0000 Subject: [PATCH] Deprecate unused stringUtils functions --- include/cantera/base/stringUtils.h | 2 ++ src/base/stringUtils.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/include/cantera/base/stringUtils.h b/include/cantera/base/stringUtils.h index 953e29fc0..dc2466ff5 100644 --- a/include/cantera/base/stringUtils.h +++ b/include/cantera/base/stringUtils.h @@ -114,6 +114,7 @@ int fillArrayFromString(const std::string& str, doublereal* const a, * * @param infile Input file name * @return Returns a logfile name + * @deprecated Unused function to be removed after Cantera 2.2. */ std::string logfileName(const std::string& infile); @@ -123,6 +124,7 @@ std::string logfileName(const std::string& infile); * of the full file name * * @return Returns the basename + * @deprecated Unused function to be removed after Cantera 2.2. */ std::string getBaseName(const std::string& fullPath); diff --git a/src/base/stringUtils.cpp b/src/base/stringUtils.cpp index 94a433afc..0f88ef01a 100644 --- a/src/base/stringUtils.cpp +++ b/src/base/stringUtils.cpp @@ -200,6 +200,7 @@ int fillArrayFromString(const std::string& str, std::string getBaseName(const std::string& path) { + warn_deprecated("getBaseName", "To be removed after Cantera 2.2."); std::string file; size_t idot = path.find_last_of('.'); size_t islash = path.find_last_of('/'); @@ -277,6 +278,7 @@ doublereal fpValueCheck(const std::string& val) //===================================================================================================================== std::string logfileName(const std::string& infile) { + warn_deprecated("logfileName", "To be removed after Cantera 2.2."); std::string logfile = getBaseName(infile); logfile += ".log"; return logfile;