diff options
Diffstat (limited to 'src/CheckIntegrityEntry.cc')
| -rw-r--r-- | src/CheckIntegrityEntry.cc | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/src/CheckIntegrityEntry.cc b/src/CheckIntegrityEntry.cc index 0377b907..43f5a6a1 100644 --- a/src/CheckIntegrityEntry.cc +++ b/src/CheckIntegrityEntry.cc @@ -33,12 +33,9 @@ */ /* copyright --> */ #include "CheckIntegrityEntry.h" -#include "DlAbortEx.h" #include "Command.h" #include "RequestGroup.h" -#include "IteratableChunkChecksumValidator.h" -#include "DownloadContext.h" -#include "DownloadEngine.h" +#include "IteratableValidator.h" CheckIntegrityEntry::CheckIntegrityEntry(RequestGroup* requestGroup, Command* nextCommand): @@ -75,23 +72,3 @@ bool CheckIntegrityEntry::finished() { return _validator->finished(); } - -bool CheckIntegrityEntry::isValidationReady() -{ - DownloadContextHandle dctx = _requestGroup->getDownloadContext(); - return dctx->getPieceHashes().size() > 0 && - dctx->getPieceHashes().size() == (uint32_t)dctx->getNumPieces(); -} - -void CheckIntegrityEntry::initValidator() -{ - IteratableChunkChecksumValidatorHandle validator = - new IteratableChunkChecksumValidator(_requestGroup->getDownloadContext(), - _requestGroup->getPieceStorage()); - _validator = validator; -} - -void CheckIntegrityEntry::updatePieceStorage() -{ - _validator->updatePieceStorage(); -} |
