From 9b353ef407b694c10c755501a9693b8173a4e8e0 Mon Sep 17 00:00:00 2001 From: Tim van der Meij Date: Sun, 1 Oct 2017 15:01:31 +0200 Subject: [PATCH] Remove the deprecated parameter handling in the `render` method of the API This is deprecated since January 2015 with a visible message, so we can safely remove this now. --- src/display/api.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/display/api.js b/src/display/api.js index 74e9876b0..2599052c5 100644 --- a/src/display/api.js +++ b/src/display/api.js @@ -756,10 +756,6 @@ var PDFDocumentProxy = (function PDFDocumentProxyClosure() { * just before viewport transform. * @property {Object} imageLayer - (optional) An object that has beginLayout, * endLayout and appendImage functions. - * @property {function} continueCallback - (deprecated) A function that will be - * called each time the rendering is paused. To continue - * rendering call the function that is the first argument - * to the callback. * @property {Object} canvasFactory - (optional) The factory that will be used * when creating canvases. The default value is * {DOMCanvasFactory}. @@ -933,12 +929,6 @@ var PDFPageProxy = (function PDFPageProxyClosure() { intentState.renderTasks.push(internalRenderTask); var renderTask = internalRenderTask.task; - // Obsolete parameter support - if (params.continueCallback) { - deprecated('render is used with continueCallback parameter'); - renderTask.onContinue = params.continueCallback; - } - intentState.displayReadyCapability.promise.then((transparency) => { if (this.pendingCleanup) { complete();