From: wessels <> Date: Fri, 21 Aug 1998 12:40:00 +0000 (+0000) Subject: remove unused code X-Git-Tag: SQUID_3_0_PRE1~2818 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=131932543e27793be9514fdae8047a7c577dd344;p=thirdparty%2Fsquid.git remove unused code --- diff --git a/src/store_swapout.cc b/src/store_swapout.cc index 3830f40228..4eb73e8c9e 100644 --- a/src/store_swapout.cc +++ b/src/store_swapout.cc @@ -1,6 +1,6 @@ /* - * $Id: store_swapout.cc,v 1.24 1998/08/20 02:49:13 wessels Exp $ + * $Id: store_swapout.cc,v 1.25 1998/08/21 06:40:00 wessels Exp $ * * DEBUG: section 20 Storage Manager Swapout Functions * AUTHOR: Duane Wessels @@ -175,19 +175,14 @@ storeCheckSwapOut(StoreEntry * e) mem->inmem_lo = new_mem_lo; return; } -#if USE_QUEUE_OFFSET /* - * This feels wrong. We should only free up to what we know - * has been written to disk, not what has been queued for - * writing. Otherwise there will be a chunk of the data which - * is not in memory and is not yet on disk. + * We should only free up to what we know has been written to + * disk, not what has been queued for writing. Otherwise there + * will be a chunk of the data which is not in memory and is + * not yet on disk. */ - if (mem->swapout.queue_offset < new_mem_lo) - new_mem_lo = mem->swapout.queue_offset; -#else if ((on_disk = storeSwapOutObjectBytesOnDisk(mem)) < new_mem_lo) new_mem_lo = on_disk; -#endif stmemFreeDataUpto(&mem->data_hdr, new_mem_lo); mem->inmem_lo = new_mem_lo;