From 926b78cc7d9b9da6f01c6e8be549a6802526f327 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Sat, 8 Nov 2014 00:53:35 +0000 Subject: [PATCH] Deprecate Cabinet::assign --- src/clib/Cabinet.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/clib/Cabinet.h b/src/clib/Cabinet.h index 1add3b736..a7054dabf 100644 --- a/src/clib/Cabinet.h +++ b/src/clib/Cabinet.h @@ -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];