Remove all warning/fallback code for obsolete method signatures in web/ files

This commit is contained in:
Jonas Jenwald 2017-10-15 16:57:30 +02:00
parent b9662e97d2
commit 816ffa29aa
3 changed files with 1 additions and 24 deletions

View file

@ -601,11 +601,6 @@ class BaseViewer {
* @param {ScrollPageIntoViewParameters} params
*/
scrollPageIntoView(params) {
if ((typeof PDFJSDev === 'undefined' || PDFJSDev.test('GENERIC')) &&
(arguments.length > 1 || typeof params === 'number')) {
console.error('Call of scrollPageIntoView() with obsolete signature.');
return;
}
if (!this.pdfDocument) {
return;
}