Deprecate unused global 'error' function
This commit is contained in:
parent
a17085661f
commit
9e4ae0d050
3 changed files with 3 additions and 0 deletions
|
|
@ -112,6 +112,7 @@ void Application::Messages::setLogger(Logger* _logwriter)
|
|||
|
||||
void Application::Messages::logerror(const std::string& msg)
|
||||
{
|
||||
Cantera::warn_deprecated("Application::Messages::logerror");
|
||||
logwriter->error(msg) ;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -144,6 +144,7 @@ protected:
|
|||
* is not desired, then derive a class and reimplement this method.
|
||||
*
|
||||
* @param msg Error message to be written to cerr.
|
||||
* @deprecated To be removed after Cantera 2.2
|
||||
*/
|
||||
void logerror(const std::string& msg) ;
|
||||
|
||||
|
|
|
|||
|
|
@ -70,6 +70,7 @@ void writelogendl()
|
|||
|
||||
void error(const std::string& msg)
|
||||
{
|
||||
warn_deprecated("error");
|
||||
app()->logerror(msg);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue