From: hno <> Date: Mon, 22 Apr 2002 03:52:47 +0000 (+0000) Subject: Removed unused storeClientWaiting function X-Git-Tag: SQUID_3_0_PRE1~1040 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c1f2da009e77b4ce3c6226ecc33524e20e5377a1;p=thirdparty%2Fsquid.git Removed unused storeClientWaiting function --- diff --git a/src/protos.h b/src/protos.h index 21408f4efd..65129dc2c4 100644 --- a/src/protos.h +++ b/src/protos.h @@ -1,6 +1,6 @@ /* - * $Id: protos.h,v 1.436 2002/04/21 21:23:15 hno Exp $ + * $Id: protos.h,v 1.437 2002/04/21 21:52:47 hno Exp $ * * * SQUID Web Proxy Cache http://www.squid-cache.org/ @@ -886,7 +886,6 @@ extern StoreEntry *storeCreateEntry(const char *, const char *, request_flags, m extern void storeSetPublicKey(StoreEntry *); extern void storeComplete(StoreEntry *); extern void storeInit(void); -extern int storeClientWaiting(const StoreEntry *); extern void storeAbort(StoreEntry *); extern void storeAppend(StoreEntry *, const char *, int); extern void storeLockObject(StoreEntry *); diff --git a/src/store_client.cc b/src/store_client.cc index d11346a223..32c9214c43 100644 --- a/src/store_client.cc +++ b/src/store_client.cc @@ -1,6 +1,6 @@ /* - * $Id: store_client.cc,v 1.110 2002/04/16 22:45:25 wessels Exp $ + * $Id: store_client.cc,v 1.111 2002/04/21 21:52:47 hno Exp $ * * DEBUG: section 20 Storage Manager Client-Side Interface * AUTHOR: Duane Wessels @@ -50,22 +50,6 @@ static store_client_t storeClientType(StoreEntry *); static int CheckQuickAbort2(StoreEntry * entry); static void CheckQuickAbort(StoreEntry * entry); -/* check if there is any client waiting for this object at all */ -/* return 1 if there is at least one client */ -int -storeClientWaiting(const StoreEntry * e) -{ - MemObject *mem = e->mem_obj; - dlink_node *node; - store_client *sc; - for (node = mem->clients.head; node; node = node->next) { - sc = node->data; - if (sc->callback_data != NULL) - return 1; - } - return 0; -} - #if STORE_CLIENT_LIST_DEBUG static store_client * storeClientListSearch(const MemObject * mem, void *data)