From cc76132c2426cc26b0493b6ff6624980882609f1 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Mon, 25 Nov 2019 11:25:57 +0100 Subject: [PATCH] Remove outdated, and misleading, JSDoc comment from the `PDFDocument` class The contents of this comment hasn't been correct for *years*, ever since the library was properly split into main/worker-threads, so it's probably high time for this to be updated. --- src/core/document.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/core/document.js b/src/core/document.js index 354e4c5d6..e63427bd9 100644 --- a/src/core/document.js +++ b/src/core/document.js @@ -362,10 +362,7 @@ function find(stream, needle, limit, backwards = false) { } /** - * The `PDFDocument` class holds all the data of the PDF file. There exists - * one `PDFDocument` object on the main thread and one object for each worker. - * If no worker support is enabled, two `PDFDocument` objects are created on - * the main thread. + * The `PDFDocument` class holds all the (worker-thread) data of the PDF file. */ class PDFDocument { constructor(pdfManager, arg) {