Mercurial > hg > octave-terminal
changeset 9868:7f4939e76684
deprecate cellidx
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Tue, 24 Nov 2009 14:15:43 +0100 |
parents | 1c274aa2b4d1 |
children | ecd750d1eabd |
files | scripts/ChangeLog scripts/deprecated/cellidx.m scripts/deprecated/module.mk scripts/general/cellidx.m scripts/general/module.mk |
diffstat | 4 files changed, 14 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2009-11-24 Jaroslav Hajek <highegg@gmail.com> + + * general/cellidx.m: Deprecate. + 2009-11-24 Jaroslav Hajek <highegg@gmail.com> * general/issquare.m: Change to return consistent result for empty
rename from scripts/general/cellidx.m rename to scripts/deprecated/cellidx.m --- a/scripts/general/cellidx.m +++ b/scripts/deprecated/cellidx.m @@ -34,8 +34,17 @@ ## screen and exits with an error. ## @end deftypefn +## deprecated in version 3.4 + function [idxvec,errmsg] = cellidx (listvar, strlist) + persistent warned = false; + if (! warned) + warned = true; + warning ("Octave:deprecated-function", + "cellidx is obsolete and will be removed from a future version of Octave; use ismember instead."); + endif + if (nargin != 2) print_usage (); endif