mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Remove the isRef
helper function
This helper function is not really needed, since it's just a wrapper around a simple `instanceof` check, and it only adds unnecessary indirection in the code.
This commit is contained in:
parent
df0aa1a9c4
commit
2cb2f633ac
10 changed files with 55 additions and 67 deletions
|
@ -394,10 +394,6 @@ function isDict(v, type) {
|
|||
);
|
||||
}
|
||||
|
||||
function isRef(v) {
|
||||
return v instanceof Ref;
|
||||
}
|
||||
|
||||
function isRefsEqual(v1, v2) {
|
||||
if (
|
||||
typeof PDFJSDev === "undefined" ||
|
||||
|
@ -426,7 +422,6 @@ export {
|
|||
isCmd,
|
||||
isDict,
|
||||
isName,
|
||||
isRef,
|
||||
isRefsEqual,
|
||||
Name,
|
||||
Ref,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue