Commit c3fa608c authored by François Cartegnie's avatar François Cartegnie 🤞
Browse files

demux: dash: remove unused members

parent 18186c84
...@@ -91,9 +91,7 @@ Chunk * SegmentTracker::getNextChunk(Streams::Type type) ...@@ -91,9 +91,7 @@ Chunk * SegmentTracker::getNextChunk(Streams::Type type)
Chunk *chunk = segment->toChunk(count, rep); Chunk *chunk = segment->toChunk(count, rep);
if(chunk) if(chunk)
{
segment->done();
count++; count++;
}
return chunk; return chunk;
} }
...@@ -76,15 +76,6 @@ dash::http::Chunk* ISegment::toChunk(size_t index, Representation *ctxrep) ...@@ -76,15 +76,6 @@ dash::http::Chunk* ISegment::toChunk(size_t index, Representation *ctxrep)
return chunk; return chunk;
} }
bool ISegment::isSingleShot() const
{
return true;
}
void ISegment::done()
{
//Only used for a SegmentTemplate.
}
void ISegment::setByteRange(size_t start, size_t end) void ISegment::setByteRange(size_t start, size_t end)
{ {
startByte = start; startByte = start;
......
...@@ -51,8 +51,6 @@ namespace dash ...@@ -51,8 +51,6 @@ namespace dash
* That is basically true when using an Url, and false * That is basically true when using an Url, and false
* when using an UrlTemplate * when using an UrlTemplate
*/ */
virtual bool isSingleShot () const;
virtual void done ();
virtual dash::http::Chunk* toChunk (size_t, Representation * = NULL); virtual dash::http::Chunk* toChunk (size_t, Representation * = NULL);
virtual void setByteRange (size_t start, size_t end); virtual void setByteRange (size_t start, size_t end);
virtual size_t getOffset () const; virtual size_t getOffset () const;
......
...@@ -61,11 +61,6 @@ void SegmentTemplate::setStartIndex(size_t i) ...@@ -61,11 +61,6 @@ void SegmentTemplate::setStartIndex(size_t i)
startIndex = i; startIndex = i;
} }
bool SegmentTemplate::isSingleShot() const
{
return false;
}
InitSegmentTemplate::InitSegmentTemplate( ICanonicalUrl *parent ) : InitSegmentTemplate::InitSegmentTemplate( ICanonicalUrl *parent ) :
SegmentTemplate(parent) SegmentTemplate(parent)
{ {
......
...@@ -38,7 +38,6 @@ namespace dash ...@@ -38,7 +38,6 @@ namespace dash
public: public:
SegmentTemplate( ICanonicalUrl * = NULL ); SegmentTemplate( ICanonicalUrl * = NULL );
virtual Url getUrlSegment() const; /* reimpl */ virtual Url getUrlSegment() const; /* reimpl */
virtual bool isSingleShot() const;
size_t getStartIndex() const; size_t getStartIndex() const;
void setStartIndex(size_t); void setStartIndex(size_t);
Property<mtime_t> duration; Property<mtime_t> duration;
......
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 to comment