Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
dfahlander committed Dec 13, 2023
1 parent 2de7913 commit 4aba3e8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/helpers/promise.js
Original file line number Diff line number Diff line change
Expand Up @@ -653,9 +653,7 @@ export function newScope (fn, props, a1, a2) {
psd.global = false;
psd.id = ++zone_id_counter;
// Prepare for promise patching (done in usePSD):
var globalEnv = globalPSD.env;
psd.env = patchGlobalPromise ? {
Promise: DexiePromise, // Changing window.Promise could be omitted for Chrome and Edge, where IDB+Promise plays well!
PromiseProp: {value: DexiePromise, configurable: true, writable: true},
} : {};
if (props) extend(psd, props);
Expand Down Expand Up @@ -759,9 +757,7 @@ function switchToZone (targetZone, bEnteringZone) {
}

function snapShot () {
var GlobalPromise = _global.Promise;
return patchGlobalPromise ? {
Promise: GlobalPromise,
PromiseProp: Object.getOwnPropertyDescriptor(_global, "Promise"),
} : {};
}
Expand Down

0 comments on commit 4aba3e8

Please sign in to comment.