From: wessels <> Date: Wed, 11 Feb 1998 05:29:51 +0000 (+0000) Subject: removed fm->last_file_number_allocated which wasnt really being used X-Git-Tag: SQUID_3_0_PRE1~4118 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea80bc9b2f405dde16ffe158ea8c9db103172894;p=thirdparty%2Fsquid.git removed fm->last_file_number_allocated which wasnt really being used --- diff --git a/src/filemap.cc b/src/filemap.cc index 7a6fad9cc5..87c571f282 100644 --- a/src/filemap.cc +++ b/src/filemap.cc @@ -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); } } diff --git a/src/structs.h b/src/structs.h index 1fe4899de5..f013b97d2a 100644 --- a/src/structs.h +++ b/src/structs.h @@ -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;