Deprecate unused stringUtils functions

This commit is contained in:
Ray Speth 2014-04-02 15:26:42 +00:00
parent 43546f870f
commit beeaa21644
2 changed files with 4 additions and 0 deletions

View file

@ -114,6 +114,7 @@ int fillArrayFromString(const std::string& str, doublereal* const a,
* *
* @param infile Input file name * @param infile Input file name
* @return Returns a logfile name * @return Returns a logfile name
* @deprecated Unused function to be removed after Cantera 2.2.
*/ */
std::string logfileName(const std::string& infile); std::string logfileName(const std::string& infile);
@ -123,6 +124,7 @@ std::string logfileName(const std::string& infile);
* of the full file name * of the full file name
* *
* @return Returns the basename * @return Returns the basename
* @deprecated Unused function to be removed after Cantera 2.2.
*/ */
std::string getBaseName(const std::string& fullPath); std::string getBaseName(const std::string& fullPath);

View file

@ -200,6 +200,7 @@ int fillArrayFromString(const std::string& str,
std::string getBaseName(const std::string& path) std::string getBaseName(const std::string& path)
{ {
warn_deprecated("getBaseName", "To be removed after Cantera 2.2.");
std::string file; std::string file;
size_t idot = path.find_last_of('.'); size_t idot = path.find_last_of('.');
size_t islash = 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) std::string logfileName(const std::string& infile)
{ {
warn_deprecated("logfileName", "To be removed after Cantera 2.2.");
std::string logfile = getBaseName(infile); std::string logfile = getBaseName(infile);
logfile += ".log"; logfile += ".log";
return logfile; return logfile;