Skip to content

Commit ca8f807

Browse files
committed
Remove the deprecated PDFWorker.fromPort method (PR 19943 follow-up)
This has been deprecated in ten releases, so let's just remove it now.
1 parent 2643125 commit ca8f807

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

src/display/api.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2099,16 +2099,6 @@ class PDFWorker {
20992099
new Blob([wrapper], { type: "text/javascript" })
21002100
);
21012101
};
2102-
2103-
this.fromPort = params => {
2104-
deprecated(
2105-
"`PDFWorker.fromPort` - please use `PDFWorker.create` instead."
2106-
);
2107-
if (!params?.port) {
2108-
throw new Error("PDFWorker.fromPort - invalid method signature.");
2109-
}
2110-
return this.create(params);
2111-
};
21122102
}
21132103

21142104
if (typeof PDFJSDev === "undefined" || PDFJSDev.test("TESTING")) {

0 commit comments

Comments
 (0)