|
@@ -76,12 +76,6 @@ class NRRDLoader extends Loader {
|
|
|
|
|
|
function scan( type, chunks ) {
|
|
|
|
|
|
- if ( chunks === undefined || chunks === null ) {
|
|
|
-
|
|
|
- chunks = 1;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
let _chunkSize = 1;
|
|
|
let _array_type = Uint8Array;
|
|
|
|
|
@@ -138,13 +132,6 @@ class NRRDLoader extends Loader {
|
|
|
|
|
|
}
|
|
|
|
|
|
- if ( chunks == 1 ) {
|
|
|
-
|
|
|
- // if only one chunk was requested, just return one value
|
|
|
- return _bytes[ 0 ];
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
// return the byte array
|
|
|
return _bytes;
|
|
|
|