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:
Joshua T Kalis 2014-04-13 10:02:56 -04:00
parent bb739c011e
commit 5828b2c687
4 changed files with 17 additions and 25 deletions

View file

@ -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,