Move the deprecated helper function to the src/display/display_utils.js file

Given that the function is (purposely) independent of the verbosity level and that its message is worded to only apply on the main-thread, there's no reason to duplicate this across the built `pdf.js`/`pdf.worker.js` files.
This commit is contained in:
Jonas Jenwald 2019-03-02 11:45:14 +01:00
parent 4170c414fa
commit 7caf769a66
3 changed files with 12 additions and 13 deletions

View file

@ -307,11 +307,6 @@ function warn(msg) {
}
}
// Deprecated API function -- display regardless of the `verbosity` setting.
function deprecated(details) {
console.log('Deprecated API usage: ' + details);
}
function unreachable(msg) {
throw new Error(msg);
}
@ -929,7 +924,6 @@ export {
bytesToString,
createPromiseCapability,
createObjectURL,
deprecated,
getVerbosityLevel,
info,
isArrayBuffer,