diff --git a/src/worker.js b/src/worker.js index a3a2e61a6..49b03e7db 100644 --- a/src/worker.js +++ b/src/worker.js @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -/* globals CanvasGraphics, error, globalScope, InvalidPDFException, log, +/* globals error, globalScope, InvalidPDFException, log, MissingPDFException, PasswordException, PDFDocument, PDFJS, Promise, Stream, UnknownErrorException, warn */ @@ -245,11 +245,6 @@ var WorkerMessageHandler = { handler.on('RenderPageRequest', function wphSetupRenderPage(data) { var pageNum = data.pageIndex + 1; - // The following code does quite the same as - // Page.prototype.startRendering, but stops at one point and sends the - // result back to the main thread. - var gfx = new CanvasGraphics(null); - var start = Date.now(); var dependency = [];