diff src/ov-builtin.cc @ 5864:e884ab4f29ee

[project @ 2006-06-22 00:57:27 by jwe]
author jwe
date Thu, 22 Jun 2006 00:57:28 +0000
parents ace8d8d26933
children 93c65f2a5668
line wrap: on
line diff
--- a/src/ov-builtin.cc	Tue Jun 20 17:56:59 2006 +0000
+++ b/src/ov-builtin.cc	Thu Jun 22 00:57:28 2006 +0000
@@ -38,20 +38,6 @@
 				     "built-in function",
 				     "built-in function");
 
-// Are any of the arguments `:'?
-
-static bool
-any_arg_is_magic_colon (const octave_value_list& args)
-{
-  int nargin = args.length ();
-
-  for (int i = 0; i < nargin; i++)
-    if (args(i).is_magic_colon ())
-      return true;
-
-  return false;
-}
-
 octave_value_list
 octave_builtin::subsref (const std::string& type,
 			 const std::list<octave_value_list>& idx,
@@ -105,7 +91,7 @@
   if (error_state)
     return retval;
 
-  if (any_arg_is_magic_colon (args))
+  if (args.has_magic_colon ())
     ::error ("invalid use of colon in function argument list");
   else
     {