Deprecate unused stringUtils functions
This commit is contained in:
parent
43546f870f
commit
beeaa21644
2 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue