Commit d5bdee3c authored by François Cartegnie's avatar François Cartegnie 🤞

demux: adaptative: remove unused source reference

parent b8a1ad1d
......@@ -38,7 +38,6 @@ using namespace adaptative::http;
AbstractChunkSource::AbstractChunkSource()
{
parentChunk = NULL;
contentLength = 0;
}
......@@ -47,11 +46,6 @@ AbstractChunkSource::~AbstractChunkSource()
}
void AbstractChunkSource::setParentChunk(AbstractChunk *parent)
{
parentChunk = parent;
}
void AbstractChunkSource::setBytesRange(const BytesRange &range)
{
bytesRange = range;
......@@ -68,7 +62,6 @@ AbstractChunk::AbstractChunk(AbstractChunkSource *source_)
{
bytesRead = 0;
source = source_;
source->setParentChunk(this);
}
AbstractChunk::~AbstractChunk()
......@@ -228,7 +221,7 @@ bool HTTPChunkSource::prepare()
if(prepared)
return true;
if(!connManager || !parentChunk)
if(!connManager)
return false;
if(!connection)
......
......@@ -48,12 +48,10 @@ namespace adaptative
virtual block_t * readBlock () = 0;
virtual block_t * read (size_t) = 0;
virtual bool hasMoreData () const = 0;
void setParentChunk (AbstractChunk *);
void setBytesRange (const BytesRange &);
const BytesRange & getBytesRange () const;
protected:
AbstractChunk *parentChunk;
size_t contentLength;
BytesRange bytesRange;
};
......
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