diff liboctave/Array.cc @ 8784:374cb30311a8

remove dead branch in Array.cc
author Jaroslav Hajek <highegg@gmail.com>
date Tue, 17 Feb 2009 21:47:10 +0100
parents b0356f30a33b
children f6dc6eb57045
line wrap: on
line diff
--- a/liboctave/Array.cc
+++ b/liboctave/Array.cc
@@ -1089,9 +1089,7 @@
 Array<T>::resize_fill (const dim_vector& dv, const T& rfv)
 {
   int dvl = dv.length ();
-  if (dvl == 1)
-    resize (dv(0), rfv);
-  else if (dvl == 2)
+  if (dvl == 2)
     resize (dv(0), dv(1), rfv);
   else if (dimensions != dv)
     {