Deprecate unused global 'error' function

This commit is contained in:
Ray Speth 2014-03-28 23:12:36 +00:00
parent a17085661f
commit 9e4ae0d050
3 changed files with 3 additions and 0 deletions

View file

@ -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) ;
}

View file

@ -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) ;

View file

@ -70,6 +70,7 @@ void writelogendl()
void error(const std::string& msg)
{
warn_deprecated("error");
app()->logerror(msg);
}