Remove Util.appendToArray and Util.prependToArray

The former may be replaced by regular JavaScript array concatenation and
the latter is unused. This avoids unnecessary function calls/imports.
This commit is contained in:
Tim van der Meij 2018-06-09 20:51:15 +02:00
parent db874b6680
commit 903bad1906
No known key found for this signature in database
GPG key ID: 8C3FD2925A5F2762
3 changed files with 3 additions and 11 deletions

View file

@ -1075,7 +1075,7 @@ var PDFPageProxy = (function PDFPageProxyClosure() {
return;
}
Util.extendObj(textContent.styles, value.styles);
Util.appendToArray(textContent.items, value.items);
textContent.items.push(...value.items);
pump();
}, reject);
}