1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 01:58:06 +02:00

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

@ -13,7 +13,7 @@
* limitations under the License.
*/
import { FormatError, isSpace, stringToBytes, Util } from '../shared/util';
import { FormatError, isSpace, stringToBytes } from '../shared/util';
import { isDict } from './primitives';
var Stream = (function StreamClosure() {
@ -274,7 +274,7 @@ var StreamsSequenceStream = (function StreamsSequenceStreamClosure() {
for (var i = 0, ii = this.streams.length; i < ii; i++) {
var stream = this.streams[i];
if (stream.getBaseStreams) {
Util.appendToArray(baseStreams, stream.getBaseStreams());
baseStreams.push(...stream.getBaseStreams());
}
}
return baseStreams;