Mercurial > octave
comparison scripts/legacy/@inline/char.m @ 30910:78c3dcadf130
maint: Remove unnecessary input validation from @style classes
The Octave interpreter guarantees that the first argument to an old-style
@class is the object itself so there is no need to check for it.
* cd.m, disp.m, argnames.m, char.m, feval.m, formula.m,
vectorize.m: Remove check for 1 argument to function.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 06 Apr 2022 16:30:23 -0700 |
parents | 5d3faba0342e |
children | b7edac56a810 |
comparison
equal
deleted
inserted
replaced
30909:a6eabdc177bc | 30910:78c3dcadf130 |
---|---|
32 ## @seealso{char, argnames, inline, vectorize} | 32 ## @seealso{char, argnames, inline, vectorize} |
33 ## @end deftypefn | 33 ## @end deftypefn |
34 | 34 |
35 function fcnstr = char (obj) | 35 function fcnstr = char (obj) |
36 | 36 |
37 if (nargin < 1) | |
38 print_usage (); | |
39 endif | |
40 | |
41 fcnstr = obj.expr; | 37 fcnstr = obj.expr; |
42 | 38 |
43 endfunction | 39 endfunction |