Deprecate Cabinet::assign

This commit is contained in:
Ray Speth 2014-11-08 00:53:35 +00:00
parent 363d3ec3f0
commit 926b78cc7d

View file

@ -6,6 +6,7 @@
#include "cantera/base/stringUtils.h"
#include "cantera/base/ctexceptions.h"
#include "cantera/base/global.h"
#include "clib_defs.h"
/**
@ -100,8 +101,11 @@ public:
* Assign one object (index j) to another (index i). This method
* is not used currently, and may be removed from the class in the
* future.
* @deprecated To be removed after Cantera 2.2
*/
static int assign(int i, int j) {
Cantera::warn_deprecated("Cabinet::assign",
"To be removed after Cantera 2.2.");
dataRef data = getData();
try {
M* src = data[j];