浏览代码

Remove a dead store in Piece

Nils Maier 12 年之前
父节点
当前提交
1323048ab1
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      src/Piece.cc

+ 0 - 1
src/Piece.cc

@@ -266,7 +266,6 @@ void updateHashWithRead(MessageDigest* mdctx,
       throw DL_ABORT_EX(fmt(EX_FILE_READ, "n/a", "data is too short"));
     }
     mdctx->update(buf, nread);
-    offset += nread;
   }
 }
 } // namespace