mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Merge pull request #13186 from Snuffleupagus/rm-deprecated-code
Remove some `deprecated` code
This commit is contained in:
commit
5945f7c4a1
3 changed files with 5 additions and 47 deletions
|
@ -107,16 +107,6 @@ class PDFLinkService {
|
|||
this.pdfViewer.pagesRotation = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
navigateTo(dest) {
|
||||
console.error(
|
||||
"Deprecated method: `navigateTo`, use `goToDestination` instead."
|
||||
);
|
||||
this.goToDestination(dest);
|
||||
}
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
|
|
|
@ -155,28 +155,10 @@ class PDFPresentationMode {
|
|||
} else if (this.active) {
|
||||
state = PresentationModeState.FULLSCREEN;
|
||||
}
|
||||
|
||||
if (typeof PDFJSDev !== "undefined" && PDFJSDev.test("MOZCENTRAL")) {
|
||||
this.eventBus.dispatch("presentationmodechanged", {
|
||||
source: this,
|
||||
state,
|
||||
});
|
||||
} else {
|
||||
this.eventBus.dispatch("presentationmodechanged", {
|
||||
source: this,
|
||||
state,
|
||||
get active() {
|
||||
throw new Error(
|
||||
"Deprecated parameter: `active`, please use `state` instead."
|
||||
);
|
||||
},
|
||||
get switchInProgress() {
|
||||
throw new Error(
|
||||
"Deprecated parameter: `switchInProgress`, please use `state` instead."
|
||||
);
|
||||
},
|
||||
});
|
||||
}
|
||||
this.eventBus.dispatch("presentationmodechanged", {
|
||||
source: this,
|
||||
state,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue