Refactor - remove redundant function and all references
The function `assertWllFormed` was doing nothing different than `assert` which is available in the same namespace. Removing it will lighten the filesize - albeit very slightly - and reduce complexity.
This commit is contained in:
parent
bb739c011e
commit
5828b2c687
4 changed files with 17 additions and 25 deletions
|
@ -283,14 +283,6 @@ function isValidUrl(url, allowRelative) {
|
|||
}
|
||||
PDFJS.isValidUrl = isValidUrl;
|
||||
|
||||
// In a well-formed PDF, |cond| holds. If it doesn't, subsequent
|
||||
// behavior is undefined.
|
||||
function assertWellFormed(cond, msg) {
|
||||
if (!cond) {
|
||||
error(msg);
|
||||
}
|
||||
}
|
||||
|
||||
function shadow(obj, prop, value) {
|
||||
Object.defineProperty(obj, prop, { value: value,
|
||||
enumerable: true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue