summaryrefslogtreecommitdiff
path: root/src/ByteArrayDiskWriter.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2007-11-17 17:39:05 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2007-11-17 17:39:05 +0000
commitcf8bd76213945cf8f1b5c7ffe7855e20407e7ff3 (patch)
treef83646b16c1f85861a875dabd0c63609a9a75d4b /src/ByteArrayDiskWriter.cc
parentddefccd03c44d2c8cd9ebf352a412f5a9e014e04 (diff)
2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Removed. * src/PiecedSegment.{h, cc} (operator==)(operator!=) Use Segment::operator==() * src/HttpConnection.cc * src/Segment.h Updated usage * src/version_usage.cc Added EINTR treatment. * src/SocketCore.cc * src/AbstractDiskWriter.cc Rewritten. * src/Util.cc (rangedFileCopy)
Diffstat (limited to 'src/ByteArrayDiskWriter.cc')
-rw-r--r--src/ByteArrayDiskWriter.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/ByteArrayDiskWriter.cc b/src/ByteArrayDiskWriter.cc
index 864d167c..750e0437 100644
--- a/src/ByteArrayDiskWriter.cc
+++ b/src/ByteArrayDiskWriter.cc
@@ -82,7 +82,6 @@ int32_t ByteArrayDiskWriter::readData(unsigned char* data, int32_t len, int64_t
{
buf.seekg(position, ios::beg);
buf.read(reinterpret_cast<char*>(data), len);
- // TODO we have to call buf.clear() here? YES
buf.clear();
return buf.gcount();
}