Skip to content

Commit c81e9a8

Browse files
authored
perf: Remove redundant collection in Streaming Engine (#8645)
1 parent 81b2ff5 commit c81e9a8

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/media/streaming_engine.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,22 +1027,17 @@ shaka.media.StreamingEngine = class {
10271027
* shaka.extern.Stream>}
10281028
*/
10291029
const streamsByType = new Map();
1030-
/** @type {!Set<shaka.extern.Stream>} */
1031-
const streams = new Set();
10321030

10331031
if (this.currentVariant_.audio) {
10341032
streamsByType.set(ContentType.AUDIO, this.currentVariant_.audio);
1035-
streams.add(this.currentVariant_.audio);
10361033
}
10371034

10381035
if (this.currentVariant_.video) {
10391036
streamsByType.set(ContentType.VIDEO, this.currentVariant_.video);
1040-
streams.add(this.currentVariant_.video);
10411037
}
10421038

10431039
if (this.currentTextStream_) {
10441040
streamsByType.set(ContentType.TEXT, this.currentTextStream_);
1045-
streams.add(this.currentTextStream_);
10461041
}
10471042

10481043
// Init MediaSourceEngine.

0 commit comments

Comments
 (0)