summaryrefslogtreecommitdiff
path: root/src/FileAllocationEntry.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FileAllocationEntry.cc')
-rw-r--r--src/FileAllocationEntry.cc13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/FileAllocationEntry.cc b/src/FileAllocationEntry.cc
index 2d873e4b..2d96f756 100644
--- a/src/FileAllocationEntry.cc
+++ b/src/FileAllocationEntry.cc
@@ -44,14 +44,10 @@ namespace aria2 {
FileAllocationEntry::FileAllocationEntry(RequestGroup* requestGroup, Command* nextCommand):
RequestGroupEntry(requestGroup, nextCommand),
fileAllocationIterator_(requestGroup->getPieceStorage()->getDiskAdaptor()->fileAllocationIterator())
-{
- getRequestGroup()->getPieceStorage()->getDiskAdaptor()->enableDirectIO();
-}
+{}
FileAllocationEntry:: ~FileAllocationEntry()
-{
- getRequestGroup()->getPieceStorage()->getDiskAdaptor()->disableDirectIO();
-}
+{}
off_t FileAllocationEntry::getCurrentLength()
{
@@ -73,9 +69,4 @@ void FileAllocationEntry::allocateChunk()
fileAllocationIterator_->allocateChunk();
}
-void FileAllocationEntry::disableDirectIO()
-{
- getRequestGroup()->getPieceStorage()->getDiskAdaptor()->disableDirectIO();
-}
-
} // namespace aria2