]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
removed fm->last_file_number_allocated which wasnt really being used
authorwessels <>
Wed, 11 Feb 1998 05:29:51 +0000 (05:29 +0000)
committerwessels <>
Wed, 11 Feb 1998 05:29:51 +0000 (05:29 +0000)
src/filemap.cc
src/structs.h

index 7a6fad9cc5de75354d2fb81aa6bb1169559ed35e..87c571f2827134702756fb5660d9d398b3739d74 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: filemap.cc,v 1.22 1998/02/02 21:15:01 wessels Exp $
+ * $Id: filemap.cc,v 1.23 1998/02/10 22:29:51 wessels Exp $
  *
  * DEBUG: section 8     Swap File Bitmap
  * AUTHOR: Harvest Derived
@@ -177,7 +177,6 @@ file_map_allocate(fileMap * fm, int suggestion)
     if (suggestion > fm->max_n_files)
        suggestion = 0;
     if (!file_map_bit_test(fm, suggestion)) {
-       fm->last_file_number_allocated = suggestion;
        return file_map_bit_set(fm, suggestion);
     }
     word = suggestion >> LONG_BIT_SHIFT;
@@ -189,7 +188,6 @@ file_map_allocate(fileMap * fm, int suggestion)
     for (bit = 0; bit < BITS_IN_A_LONG; bit++) {
        suggestion = ((unsigned long) word << LONG_BIT_SHIFT) | bit;
        if (!file_map_bit_test(fm, suggestion)) {
-           fm->last_file_number_allocated = suggestion;
            return file_map_bit_set(fm, suggestion);
        }
     }
index 1fe4899de514eeb1605183ebdc0b953458e8919b..f013b97d2aa8c0e87c4c0c6c4474997fdef8b267 100644 (file)
@@ -410,7 +410,6 @@ struct _fde {
 struct _fileMap {
     int max_n_files;
     int n_files_in_map;
-    int last_file_number_allocated;
     int toggle;
     int nwords;
     unsigned long *file_map;