From: wessels <> Date: Fri, 25 Oct 1996 04:21:30 +0000 (+0000) Subject: Removed storeFindFirst and storeFindNext wrappers X-Git-Tag: SQUID_3_0_PRE1~5597 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c3c5b7448e7066fa67721b290da922e6d0ff1e36;p=thirdparty%2Fsquid.git Removed storeFindFirst and storeFindNext wrappers --- diff --git a/src/store.cc b/src/store.cc index 1697962fa3..a0060ad788 100644 --- a/src/store.cc +++ b/src/store.cc @@ -1,6 +1,6 @@ /* - * $Id: store.cc,v 1.135 1996/10/24 21:52:53 wessels Exp $ + * $Id: store.cc,v 1.136 1996/10/24 22:21:30 wessels Exp $ * * DEBUG: section 20 Storeage Manager * AUTHOR: Harvest Derived @@ -205,8 +205,6 @@ int store_rebuilding = STORE_REBUILDING_SLOW; static char *storeDescribeStatus _PARAMS((StoreEntry *)); static char *storeSwapFullPath _PARAMS((int, char *)); static HashID storeCreateHashTable _PARAMS((int (*)_PARAMS((char *, char *)))); -static hash_link *storeFindFirst _PARAMS((HashID)); -static hash_link *storeFindNext _PARAMS((HashID)); static int compareLastRef _PARAMS((StoreEntry **, StoreEntry **)); static int compareSize _PARAMS((StoreEntry **, StoreEntry **)); static int storeAddSwapDisk _PARAMS((char *)); @@ -1778,31 +1776,12 @@ storeAbort(StoreEntry * e, char *msg) return; } -/* get the first in memory object entry in the storage */ -static hash_link * -storeFindFirst(HashID id) -{ - if (id == (HashID) 0) - return NULL; - return (hash_first(id)); -} - -/* get the next in memory object entry in the storage for a given - * search pointer */ -static hash_link * -storeFindNext(HashID id) -{ - if (id == (HashID) 0) - return NULL; - return (hash_next(id)); -} - /* get the first in memory object entry in the storage */ static StoreEntry * storeGetInMemFirst(void) { hash_link *first = NULL; - first = storeFindFirst(in_mem_table); + first = hash_first(in_mem_table); return (first ? ((StoreEntry *) first->item) : NULL); } @@ -1813,7 +1792,7 @@ static StoreEntry * storeGetInMemNext(void) { hash_link *next = NULL; - next = storeFindNext(in_mem_table); + next = hash_next(in_mem_table); return (next ? ((StoreEntry *) next->item) : NULL); } @@ -1821,7 +1800,7 @@ storeGetInMemNext(void) StoreEntry * storeGetFirst(void) { - return ((StoreEntry *) storeFindFirst(store_table)); + return ((StoreEntry *) hash_first(store_table)); } @@ -1829,7 +1808,7 @@ storeGetFirst(void) StoreEntry * storeGetNext(void) { - return ((StoreEntry *) storeFindNext(store_table)); + return ((StoreEntry *) hash_next(store_table)); } /* free up all ttl-expired objects */