Skip to content

Commit

Permalink
Deprecate wrapString
Browse files Browse the repository at this point in the history
  • Loading branch information
speth committed Oct 28, 2016
1 parent 7a24dc3 commit 388dbaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/cantera/base/stringUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ std::string parseSpeciesName(const std::string& nameStr, std::string& phaseName)
/*!
* @param s Input string to be line wrapped
* @param len Length at which to wrap. The default is 70.
* @deprecated Unused. To be removed after Cantera 2.3.
*/
std::string wrapString(const std::string& s,
const int len=70);
Expand Down
1 change: 1 addition & 0 deletions src/base/stringUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ doublereal fpValueCheck(const std::string& val)

std::string wrapString(const std::string& s, const int len)
{
warn_deprecated("wrapString", "Unused. To be removed after Cantera 2.3.");
int count=0;
std::string r;
for (size_t n = 0; n < s.size(); n++) {
Expand Down

0 comments on commit 388dbaf

Please sign in to comment.