From 316b3ea5737c1bfe65d87f8c5d030207e83f8b74 Mon Sep 17 00:00:00 2001 From: Aaron Vaage Date: Fri, 6 Apr 2018 19:43:57 -0700 Subject: [PATCH] Remove Unused Optional Method Parameter Because we changed how we collect the streams before downloading we no longer used the variant id parameter. This change removes the parameter. Issue: #1248 Change-Id: Iab4323c7b358ed83812b2ff36e9632022e65f88a --- lib/offline/storage.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/offline/storage.js b/lib/offline/storage.js index 0b7c21ffd..b7b36788a 100644 --- a/lib/offline/storage.js +++ b/lib/offline/storage.js @@ -909,12 +909,11 @@ shaka.offline.Storage.prototype.createPeriod_ = function( * @param {shakaExtern.Period} period * @param {shakaExtern.Stream} stream * @param {number} estimatedStreamBandwidth - * @param {number=} opt_variantId * @return {shakaExtern.StreamDB} * @private */ shaka.offline.Storage.prototype.createStream_ = function( - manifest, period, stream, estimatedStreamBandwidth, opt_variantId) { + manifest, period, stream, estimatedStreamBandwidth) { /** @type {shakaExtern.StreamDB} */ let streamDb = { id: stream.id, @@ -936,10 +935,6 @@ shaka.offline.Storage.prototype.createStream_ = function( variantIds: [] }; - if (opt_variantId != null) { - streamDb.variantIds.push(opt_variantId); - } - /** @type {number} */ let startTime = manifest.presentationTimeline.getSegmentAvailabilityStart();