Bug 1472945 - Remove some deadcode introduced by bug 1470355 r=valentin
authorSylvestre Ledru <sledru@mozilla.com>
Tue, 03 Jul 2018 10:38:46 +0200
changeset 424858 b42a4a801685e9aa379c96b8741a4f03bc200da1
parent 424857 e06c40d73f8d1c0b616b57e4ff6355e62616c0d6
child 424859 2835f9a114459f3328682b6301e2330783c350fc
push id104933
push usershindli@mozilla.com
push dateTue, 03 Jul 2018 22:35:47 +0000
treeherdermozilla-inbound@00de580e868f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvalentin
bugs1472945, 1470355
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1472945 - Remove some deadcode introduced by bug 1470355 r=valentin MozReview-Commit-ID: 46IcpU2uw5o
netwerk/cache2/CacheFileInputStream.cpp
--- a/netwerk/cache2/CacheFileInputStream.cpp
+++ b/netwerk/cache2/CacheFileInputStream.cpp
@@ -164,20 +164,16 @@ CacheFileInputStream::ReadSegments(nsWri
 
     if (!mChunk) {
       if (mListeningForChunk == -1) {
         return NS_OK;
       }
       return NS_BASE_STREAM_WOULD_BLOCK;
     }
 
-    if (aCount == 0) {
-      break;
-    }
-
     CacheFileChunkReadHandle hnd = mChunk->GetReadHandle();
     int64_t canRead = CanRead(&hnd);
     if (NS_FAILED(mStatus)) {
       return mStatus;
     }
 
     if (canRead < 0) {
       // file was truncated ???