From 39dd02cf32bd4bbc649155b27e1ac38273fb4227 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Thu, 26 Mar 2026 11:07:47 +0100 Subject: [PATCH] Remove unused `preInit` parameter from the `CanvasExtraState` constructor (PR 19043 follow-up) This parameter was added in PR 19043, however it never actually appears to have been used. --- src/display/canvas.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/display/canvas.js b/src/display/canvas.js index 27f90fcb9..c8aaf6b5c 100644 --- a/src/display/canvas.js +++ b/src/display/canvas.js @@ -333,11 +333,10 @@ class CanvasExtraState { transferMaps = "none"; - constructor(width, height, preInit) { - preInit?.(this); + minMax = MIN_MAX_INIT.slice(); + constructor(width, height) { this.clipBox = new Float32Array([0, 0, width, height]); - this.minMax = MIN_MAX_INIT.slice(); } clone() {