Mercurial > hg > octave-terminal
changeset 92:ef73939dc2c5
[project @ 1993-09-13 02:29:35 by jwe]
(syl): Call is_empty instead of empty_arg.
author | jwe |
---|---|
date | Mon, 13 Sep 1993 02:29:35 +0000 |
parents | e03eea9ed19b |
children | 0a3d698c6e60 |
files | src/syl.cc |
diffstat | 1 files changed, 1 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/src/syl.cc +++ b/src/syl.cc @@ -50,16 +50,6 @@ long, long); } -// Local function: check for empty matrix arguments. Probably should make -// this available elsewhere, since tc-xxx functions do this a lot. - -int -empty_arg (tree_constant& arg) -{ - return (arg.rows () == 0 || arg.columns () == 0); -} - - // Local function: construct return vector of empty matrices. Return // empty matrices and/or gripe when appropriate. Probably should make // this available elsewhere, since tc-xxx functions do this a lot. @@ -143,7 +133,7 @@ tree_constant argb = args[2].make_numeric (); tree_constant argc = args[3].make_numeric (); - if (empty_arg (arga) || empty_arg (argb) || empty_arg (argc)) + if (arga.is_empty () || argb.is_empty () || argc.is_empty ()) retval = empty_tree (nargout, "syl"); else {