diff liboctave/chNDArray.cc @ 10352:a3635bc1ea19

remove Array2
author Jaroslav Hajek <highegg@gmail.com>
date Tue, 23 Feb 2010 16:12:27 +0100
parents 07ebe522dac2
children b47ab50a6aa8
line wrap: on
line diff
--- a/liboctave/chNDArray.cc	Tue Feb 23 14:15:34 2010 +0100
+++ b/liboctave/chNDArray.cc	Tue Feb 23 16:12:27 2010 +0100
@@ -109,28 +109,7 @@
 charMatrix
 charNDArray::matrix_value (void) const
 {
-  charMatrix retval;
-
-  int nd = ndims ();
-
-  switch (nd)
-    {
-    case 1:
-      retval = charMatrix (Array2<char> (*this, dimensions(0), 1));
-      break;
-
-    case 2:
-      retval = charMatrix (Array2<char> (*this, dimensions(0),
-                                               dimensions(1)));
-      break;
-
-    default:
-      (*current_liboctave_error_handler)
-        ("invalid conversion of charNDArray to charMatrix");
-      break;
-    }
-
-  return retval;
+  return *this;
 }
 
 void