diff --git a/chrome/content/zotero/xpcom/data/tags.js b/chrome/content/zotero/xpcom/data/tags.js index 31598722b..611be8d7b 100644 --- a/chrome/content/zotero/xpcom/data/tags.js +++ b/chrome/content/zotero/xpcom/data/tags.js @@ -361,7 +361,7 @@ Zotero.Tags = new function() { * @param {Number|Number[]} [tagIDs] - tagID or array of tagIDs to purge * @return {Promise} */ - this.purge = Zotero.Promise.coroutine(function* (libraryID, tagIDs) { + this.purge = Zotero.Promise.coroutine(function* (tagIDs) { if (!tagIDs && !Zotero.Prefs.get('purge.tags')) { return; } @@ -372,8 +372,6 @@ Zotero.Tags = new function() { Zotero.DB.requireTransaction(); - yield Zotero.Tags.load(libraryID); - // Use given tags, as long as they're orphaned if (tagIDs) { let sql = "CREATE TEMPORARY TABLE tagDelete (tagID INT PRIMARY KEY)"; @@ -381,8 +379,9 @@ Zotero.Tags = new function() { for (let i=0; i} ids One or more tagIDs - */ - function _unload(libraryID, ids) { - var ids = Zotero.flattenArguments(ids); - - for (let i=0; i