diff 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
line wrap: on
line diff
--- a/scripts/legacy/@inline/char.m	Wed Apr 06 14:54:39 2022 -0700
+++ b/scripts/legacy/@inline/char.m	Wed Apr 06 16:30:23 2022 -0700
@@ -34,10 +34,6 @@
 
 function fcnstr = char (obj)
 
-  if (nargin < 1)
-    print_usage ();
-  endif
-
   fcnstr = obj.expr;
 
 endfunction