mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
[api-major] Remove all remaining deprecated
functions/methods
This commit is contained in:
parent
b9662e97d2
commit
0f90d5130c
4 changed files with 7 additions and 55 deletions
|
@ -14,8 +14,7 @@
|
|||
*/
|
||||
|
||||
import {
|
||||
assert, CMapCompressionType, createValidAbsoluteUrl, deprecated,
|
||||
removeNullCharacters, stringToBytes, warn
|
||||
assert, CMapCompressionType, removeNullCharacters, stringToBytes, warn
|
||||
} from '../shared/util';
|
||||
import globalScope from '../shared/global_scope';
|
||||
|
||||
|
@ -464,18 +463,11 @@ function isExternalLinkTargetSet() {
|
|||
}
|
||||
}
|
||||
|
||||
function isValidUrl(url, allowRelative) {
|
||||
deprecated('isValidUrl(), please use createValidAbsoluteUrl() instead.');
|
||||
var baseUrl = allowRelative ? 'http://example.com' : null;
|
||||
return createValidAbsoluteUrl(url, baseUrl) !== null;
|
||||
}
|
||||
|
||||
export {
|
||||
CustomStyle,
|
||||
RenderingCancelledException,
|
||||
addLinkAttributes,
|
||||
isExternalLinkTargetSet,
|
||||
isValidUrl,
|
||||
getFilenameFromUrl,
|
||||
LinkTarget,
|
||||
getDefaultSetting,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue