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:
parent
db874b6680
commit
903bad1906
3 changed files with 3 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue