Skip to content

Commit

Permalink
Remove unnecessary comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Joel authored and cdata committed Mar 19, 2019
1 parent 4fdd68e commit 86f704a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/three-components/CachingGLTFLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,11 @@ export class CachingGLTFLoader {
async preload(url) {
if (!cache.has(url)) {
cache.set(url, loadWithLoader(url, this.loader));

// loadAttempt
//.then(() => {
// preloaded.set(url, true);
//})
//.catch(() => {}); // Silently ignore exceptions here, they should be
//// caught by the invoking function
}

await cache.get(url);

preloaded.set(url, true);
// return; // Explicitly return so that we don't leak the source glTF
}

/**
Expand Down

0 comments on commit 86f704a

Please sign in to comment.