From c30908db8cbc64c372979b58b9eaa5de337f0be6 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 5 Jun 2026 15:14:06 -0400 Subject: [PATCH] Drop unused options param from Items.trash/trashTx Leftover from the old skipUndo design; never read and no caller passes it --- chrome/content/zotero/xpcom/data/items.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/xpcom/data/items.js b/chrome/content/zotero/xpcom/data/items.js index 3a5fe3e4cc..657b46f836 100644 --- a/chrome/content/zotero/xpcom/data/items.js +++ b/chrome/content/zotero/xpcom/data/items.js @@ -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)); }