Skip to content

Commit 39dd02c

Browse files
committed
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.
1 parent 777251d commit 39dd02c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/display/canvas.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,11 +333,10 @@ class CanvasExtraState {
333333

334334
transferMaps = "none";
335335

336-
constructor(width, height, preInit) {
337-
preInit?.(this);
336+
minMax = MIN_MAX_INIT.slice();
338337

338+
constructor(width, height) {
339339
this.clipBox = new Float32Array([0, 0, width, height]);
340-
this.minMax = MIN_MAX_INIT.slice();
341340
}
342341

343342
clone() {

0 commit comments

Comments
 (0)