Drop unused options param from Items.trash/trashTx

Leftover from the old skipUndo design; never read and no caller passes
it
This commit is contained in:
Dan Stillman 2026-06-05 15:14:06 -04:00 • committed by Tom Najdek
parent 91198a5672
commit c30908db8c
No known key found for this signature in database
GPG key ID: EEC61A7B4C667D77

View file

@ -980,7 +980,7 @@ Zotero.Items = function () {
};
this.trash = async function (ids, options = {}) {
this.trash = async function (ids) {
Zotero.DB.requireTransaction();
var libraryIDs = new Set();
@ -1073,9 +1073,9 @@ Zotero.Items = function () {
};
this.trashTx = function (ids, options) {
this.trashTx = function (ids) {
return Zotero.DB.executeTransaction(async function () {
return this.trash(ids, options);
return this.trash(ids);
}.bind(this));
}