Mercurial > hg > octave-terminal
changeset 1695:6f5e1c4dd4cb
[project @ 1996-01-07 01:56:53 by jwe]
author | jwe |
---|---|
date | Sun, 07 Jan 1996 01:56:53 +0000 |
parents | bad55bbcaf46 |
children | 937366359b50 |
files | liboctave/Array.cc |
diffstat | 1 files changed, 0 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/Array.cc +++ b/liboctave/Array.cc @@ -91,8 +91,6 @@ { rep = new ArrayRep<T> (n); - rep->count = 1; - for (int i = 0; i < n; i++) rep->data[i] = val; @@ -195,7 +193,6 @@ int old_len = length (); rep = new ArrayRep<T> (n); - rep->count = 1; if (old_data && old_len > 0) { @@ -227,7 +224,6 @@ int old_len = length (); rep = new ArrayRep<T> (n); - rep->count = 1; int min_len = old_len < n ? old_len : n; @@ -252,7 +248,6 @@ { --rep->count; rep = new ArrayRep<T> (*rep); - rep->count = 1; } return rep->data; } @@ -328,7 +323,6 @@ int old_len = length (); rep = new ArrayRep<T> (r*c); - rep->count = 1; d1 = r; d2 = c; @@ -367,7 +361,6 @@ int old_len = length (); rep = new ArrayRep<T> (r*c); - rep->count = 1; d1 = r; d2 = c; @@ -580,7 +573,6 @@ int new_len = r < c ? r : c; rep = new ArrayRep<T> (new_len); - rep->count = 1; nr = r; nc = c; @@ -617,7 +609,6 @@ int new_len = r < c ? r : c; rep = new ArrayRep<T> (new_len); - rep->count = 1; nr = r; nc = c;