]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
remove unused code
authorwessels <>
Fri, 21 Aug 1998 12:40:00 +0000 (12:40 +0000)
committerwessels <>
Fri, 21 Aug 1998 12:40:00 +0000 (12:40 +0000)
src/store_swapout.cc

index 3830f4022891d9b000ed1c01ef9dfe557eb5c5c0..4eb73e8c9ef53290a16a819d7b7f9a23f14c344f 100644 (file)
@@ -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;