From 20d6cde85f75b90f26bceac0192b9407d467609f Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 6 Apr 2024 04:38:33 -0400 Subject: [PATCH] Remove obsolete `initPDFToolsPath()` in tests --- test/content/support.js | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/test/content/support.js b/test/content/support.js index 725fc465c2..03731e3318 100644 --- a/test/content/support.js +++ b/test/content/support.js @@ -578,37 +578,6 @@ async function getPromiseError(promise) { return false; } -/** - * Init paths for PDF tools and data - */ -function initPDFToolsPath() { - let pdfConvertedFileName = 'pdftotext'; - let pdfInfoFileName = 'pdfinfo'; - - if (Zotero.isWin) { - pdfConvertedFileName += '-win.exe'; - pdfInfoFileName += '-win.exe'; - } - else if (Zotero.isMac) { - pdfConvertedFileName += '-mac'; - pdfInfoFileName += '-mac'; - } - else { - let cpu = Zotero.platform.split(' ')[1]; - pdfConvertedFileName += '-linux-' + cpu; - pdfInfoFileName += '-linux-' + cpu; - } - - let pdfToolsPath = PathUtils.join(Zotero.Profile.dir, 'pdftools'); - let pdfConverterPath = PathUtils.join(pdfToolsPath, pdfConvertedFileName); - let pdfInfoPath = PathUtils.join(pdfToolsPath, pdfInfoFileName); - let pdfDataPath = PathUtils.join(pdfToolsPath, 'poppler-data'); - - Zotero.FullText.setPDFConverterPath(pdfConverterPath); - Zotero.FullText.setPDFInfoPath(pdfInfoPath); - Zotero.FullText.setPDFDataPath(pdfDataPath); -} - /** * Returns the nsIFile corresponding to the test data directory * (i.e., test/tests/data) @@ -693,7 +662,6 @@ async function resetDB(options = {}) { options ); await Zotero.Schema.schemaUpdatePromise; - initPDFToolsPath(); } /**