Skip to content

Commit 7035459

Browse files
Merge pull request #20960 from Snuffleupagus/rm-PDFWorker-fromPort
Remove the deprecated `PDFWorker.fromPort` method (PR 19943 follow-up)
2 parents b792f22 + ca8f807 commit 7035459

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)