From cdbe316833b8ed9d60f5b8dd648fc4f017f9079a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 30 Mar 2017 04:16:01 +0300 Subject: Improve VirtFsZip::rwops_read. --- src/fs/virtfs/virtfsziprwops.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/fs/virtfs/virtfsziprwops.cpp') 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( 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(maxnum)) - { - if (!VirtFs::eof(handle)) /* not EOF? Must be an error. */ - { - logger->assertLog("VirtFs::rwops_seek: read error."); - } - } - return CAST_S32(rc); } -- cgit v1.2.3-70-g09d2