Skip to content

Commit

Permalink
fix: Remove stackPrefetch configuration to let apps configure themselves
Browse files Browse the repository at this point in the history
Remove stackPrefetch configuration to let apps configure themselves
  • Loading branch information
dannyrb authored Aug 20, 2020
2 parents 82cf001 + 88e7d8c commit d3093d0
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 d3093d0

Please sign in to comment.