Skip to content

Commit

Permalink
Merge pull request #320 from Kitware/remove-unused
Browse files Browse the repository at this point in the history
Remove unused
  • Loading branch information
floryst authored Apr 16, 2020
2 parents 3e345dc + db989db commit fbf5afe
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
15 changes: 0 additions & 15 deletions externals/Workbox/serviceWorker.js

This file was deleted.

3 changes: 0 additions & 3 deletions src/io/ReaderFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,8 @@ function importBase64Dataset(
proxyManager,
chunkSize = 512
) {
console.log('loadBase64', fileName, base64String.length);
const chunks = [];
const bytes = atob(base64String);
console.log('bytes', bytes.length);
let totalCount = 0;
for (let offset = 0; offset < bytes.length; offset += chunkSize) {
const slice = bytes.slice(offset, offset + chunkSize);
Expand All @@ -290,7 +288,6 @@ function importBase64Dataset(
chunks.push(array);
totalCount += array.length;
}
console.log('totalCount', totalCount);
const blob = new Blob(chunks, { type: 'application/octet-stream' });
const file = new File([blob], fileName);

Expand Down

0 comments on commit fbf5afe

Please sign in to comment.