summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-30 04:16:01 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-30 04:17:08 +0300
commitcdbe316833b8ed9d60f5b8dd648fc4f017f9079a (patch)
tree7688aec7c3d304753a971149ae29fd81a3fb5159
parent91d03c26c95a0982d4de41b039e1cdf8c55d90bc (diff)
downloadplus-cdbe316833b8ed9d60f5b8dd648fc4f017f9079a.tar.gz
plus-cdbe316833b8ed9d60f5b8dd648fc4f017f9079a.tar.bz2
plus-cdbe316833b8ed9d60f5b8dd648fc4f017f9079a.tar.xz
plus-cdbe316833b8ed9d60f5b8dd648fc4f017f9079a.zip
Improve VirtFsZip::rwops_read.
-rw-r--r--src/fs/virtfs/virtfsziprwops.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/fs/virtfs/virtfsziprwops.cpp b/src/fs/virtfs/virtfsziprwops.cpp
index 71e9ad397..90f2a98db 100644
--- a/src/fs/virtfs/virtfsziprwops.cpp
+++ b/src/fs/virtfs/virtfsziprwops.cpp
@@ -39,7 +39,6 @@ namespace VirtFsZip
return -1;
VirtFile *const handle = static_cast<VirtFile *const>(
rw->hidden.unknown.data1);
-// const uint8_t *mBuf = handle->mBuf;
size_t mPos = handle->mPos;
size_t mSize = handle->mSize;
@@ -113,14 +112,6 @@ namespace VirtFsZip
const int64_t rc = VirtFs::read(handle, ptr,
CAST_U32(size),
CAST_U32(maxnum));
- if (rc != static_cast<int64_t>(maxnum))
- {
- if (!VirtFs::eof(handle)) /* not EOF? Must be an error. */
- {
- logger->assertLog("VirtFs::rwops_seek: read error.");
- }
- }
-
return CAST_S32(rc);
}