From d2afc0ca8ec0b6e8efb767cc917fdb3677f4b070 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 28 Jun 2009 10:48:26 +0000 Subject: 2009-06-28 Tatsuhiro Tsujikawa Removed _currentRequest from StreamCheckIntegrityEntry and StreamFileAllocationEntry. * src/AbstractCommand.cc * src/HttpResponseCommand.cc * src/RequestGroup.cc * src/StreamCheckIntegrityEntry.cc * src/StreamCheckIntegrityEntry.h * src/StreamFileAllocationEntry.cc * src/StreamFileAllocationEntry.h --- src/StreamCheckIntegrityEntry.cc | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/StreamCheckIntegrityEntry.cc') diff --git a/src/StreamCheckIntegrityEntry.cc b/src/StreamCheckIntegrityEntry.cc index 39e25393..aab617be 100644 --- a/src/StreamCheckIntegrityEntry.cc +++ b/src/StreamCheckIntegrityEntry.cc @@ -36,16 +36,13 @@ #include "RequestGroup.h" #include "DownloadEngine.h" #include "StreamFileAllocationEntry.h" -#include "Request.h" #include "DownloadContext.h" namespace aria2 { -StreamCheckIntegrityEntry::StreamCheckIntegrityEntry(const RequestHandle& currentRequest, - RequestGroup* requestGroup, +StreamCheckIntegrityEntry::StreamCheckIntegrityEntry(RequestGroup* requestGroup, Command* nextCommand): - PieceHashCheckIntegrityEntry(requestGroup, nextCommand), - _currentRequest(currentRequest) + PieceHashCheckIntegrityEntry(requestGroup, nextCommand) {} StreamCheckIntegrityEntry::~StreamCheckIntegrityEntry() {} @@ -54,8 +51,7 @@ void StreamCheckIntegrityEntry::onDownloadIncomplete (std::deque& commands, DownloadEngine* e) { FileAllocationEntryHandle entry - (new StreamFileAllocationEntry(_currentRequest, _requestGroup, - popNextCommand())); + (new StreamFileAllocationEntry(_requestGroup, popNextCommand())); proceedFileAllocation(commands, entry, e); } -- cgit