Remove Zotero.spawn()

This method relied on Bluebird and can be replaced by just awaiting an
async function.
This commit is contained in:
Abe Jellinek 2025-07-02 10:24:09 -04:00
parent ccc5dba032
commit 2e0a10f732
2 changed files with 0 additions and 11 deletions

View file

@ -1823,13 +1823,6 @@ Zotero.Utilities.Internal = {
};
},
spawn: function (generator, thisObject) {
if (thisObject) {
return generator.bind(thisObject)();
}
return generator();
},
/**
* Defines property on the object
* More compact way to do Object.defineProperty

View file

@ -1582,10 +1582,6 @@ const { CommandLineOptions } = ChromeUtils.importESModule("chrome://zotero/conte
return Zotero.Utilities.Internal.serial(fn);
}
this.spawn = function (generator, thisObject) {
return Zotero.Utilities.Internal.spawn(generator, thisObject);
}
/**
* Show Zotero pane overlay and progress bar in all windows
*