Commit ea0cfdee by olly Committed by Oliver Woodman

Remove dead code from SmoothStreamingChunkSource

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=127232159
parent 6b4918fa
...@@ -60,7 +60,6 @@ public class SmoothStreamingChunkSource implements ChunkSource { ...@@ -60,7 +60,6 @@ public class SmoothStreamingChunkSource implements ChunkSource {
private SmoothStreamingManifest manifest; private SmoothStreamingManifest manifest;
private int currentManifestChunkOffset; private int currentManifestChunkOffset;
private boolean needManifestRefresh;
private IOException fatalError; private IOException fatalError;
...@@ -132,11 +131,6 @@ public class SmoothStreamingChunkSource implements ChunkSource { ...@@ -132,11 +131,6 @@ public class SmoothStreamingChunkSource implements ChunkSource {
} }
} }
manifest = newManifest; manifest = newManifest;
needManifestRefresh = false;
}
public boolean needManifestRefresh() {
return needManifestRefresh;
} }
// ChunkSource implementation. // ChunkSource implementation.
...@@ -182,11 +176,8 @@ public class SmoothStreamingChunkSource implements ChunkSource { ...@@ -182,11 +176,8 @@ public class SmoothStreamingChunkSource implements ChunkSource {
StreamElement streamElement = manifest.streamElements[elementIndex]; StreamElement streamElement = manifest.streamElements[elementIndex];
if (streamElement.chunkCount == 0) { if (streamElement.chunkCount == 0) {
if (manifest.isLive) { // There aren't any chunks for us to load.
needManifestRefresh = true; out.endOfStream = !manifest.isLive;
} else {
out.endOfStream = true;
}
return; return;
} }
...@@ -202,7 +193,6 @@ public class SmoothStreamingChunkSource implements ChunkSource { ...@@ -202,7 +193,6 @@ public class SmoothStreamingChunkSource implements ChunkSource {
} }
} }
needManifestRefresh = manifest.isLive && chunkIndex >= streamElement.chunkCount - 1;
if (chunkIndex >= streamElement.chunkCount) { if (chunkIndex >= streamElement.chunkCount) {
// This is beyond the last chunk in the current manifest. // This is beyond the last chunk in the current manifest.
out.endOfStream = !manifest.isLive; out.endOfStream = !manifest.isLive;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment