mirror of
https://github.com/zotero/zotero.git
synced 2026-10-05 02:43:38 +00:00
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:
parent
91198a5672
commit
c30908db8c
1 changed files with 3 additions and 3 deletions
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue