summaryrefslogtreecommitdiff
path: root/src/StreamCheckIntegrityEntry.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-06-28 10:48:26 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-06-28 10:48:26 +0000
commitd2afc0ca8ec0b6e8efb767cc917fdb3677f4b070 (patch)
treec678bbe38ea516d46e4bcee90fbbdd11e8650cdf /src/StreamCheckIntegrityEntry.cc
parent5699b675268658ea958f7c2306e19849dff9bc41 (diff)
2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
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
Diffstat (limited to 'src/StreamCheckIntegrityEntry.cc')
-rw-r--r--src/StreamCheckIntegrityEntry.cc10
1 files changed, 3 insertions, 7 deletions
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<Command*>& commands, DownloadEngine* e)
{
FileAllocationEntryHandle entry
- (new StreamFileAllocationEntry(_currentRequest, _requestGroup,
- popNextCommand()));
+ (new StreamFileAllocationEntry(_requestGroup, popNextCommand()));
proceedFileAllocation(commands, entry, e);
}