changeset 18143:b5970988ccff

image/private/__imread__.m: simplify subfunction for argument check
author Carnë Draug <carandraug@octave.org>
date Tue, 17 Dec 2013 13:28:31 +0000
parents 10dca690f46f
children a86d608c413c
files scripts/image/private/__imread__.m
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/image/private/__imread__.m	Mon Dec 16 18:57:18 2013 +0000
+++ b/scripts/image/private/__imread__.m	Tue Dec 17 13:28:31 2013 +0000
@@ -153,10 +153,6 @@
 ## can be defined in two places, but only in one place can it also be the
 ## string "all"
 function bool = is_valid_index_option (arg)
-  ## is the index option
-  bool = false;
-  if (isvector (arg) && isnumeric (arg) && isreal (arg))
-    bool = true;
-  endif
+  bool = isvector (arg) && isnumeric (arg) && isreal (arg);
 endfunction