Skip to content

Commit

Permalink
Removed stackPrefetch configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex979 committed Aug 10, 2020
1 parent 82cf001 commit 88e7d8c
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/CornerstoneViewport/CornerstoneViewport.js
Original file line number Diff line number Diff line change
Expand Up @@ -807,16 +807,7 @@ function _trySetActiveTool(element, activeToolName) {
});
}

// TODO: Move configuration elsewhere
// This is app wide, right?
// Why would we configure this per element?
function _enableStackPrefetching(element, clear = false) {
cornerstoneTools.stackPrefetch.setConfiguration({
maxImagesToPrefetch: Infinity,
preserveExistingPool: false,
maxSimultaneousRequests: 6,
});

if (clear) {
cornerstoneTools.stackPrefetch.disable(element);
} else {
Expand Down

0 comments on commit 88e7d8c

Please sign in to comment.