From f70adcd383c357fec38c5b959ec3820a4f791cec Mon Sep 17 00:00:00 2001 From: Alex Rousskov Date: Mon, 20 Feb 2023 00:06:21 +0000 Subject: [PATCH] Removed unused storeClientCopyPending() (#1282) Unused since 2002 commit edce4d9. --- src/StoreClient.h | 1 - src/store_client.cc | 25 ------------------------- 2 files changed, 26 deletions(-) diff --git a/src/StoreClient.h b/src/StoreClient.h index 34cea4b532..eefc9391c9 100644 --- a/src/StoreClient.h +++ b/src/StoreClient.h @@ -131,7 +131,6 @@ public: void storeClientCopy(store_client *, StoreEntry *, StoreIOBuffer, STCB *, void *); store_client* storeClientListAdd(StoreEntry * e, void *data); -int storeClientCopyPending(store_client *, StoreEntry * e, void *data); int storeUnregister(store_client * sc, StoreEntry * e, void *data); int storePendingNClients(const StoreEntry * e); int storeClientIsThisAClient(store_client * sc, void *someClient); diff --git a/src/store_client.cc b/src/store_client.cc index ff472aa1d4..9ec027f806 100644 --- a/src/store_client.cc +++ b/src/store_client.cc @@ -654,31 +654,6 @@ store_client::readHeader(char const *buf, ssize_t len) fileRead(); } -int -storeClientCopyPending(store_client * sc, StoreEntry * e, void *data) -{ -#if STORE_CLIENT_LIST_DEBUG - assert(sc == storeClientListSearch(e->mem_obj, data)); -#endif -#ifndef SILLY_CODE - - assert(sc); -#endif - - assert(sc->entry == e); -#if SILLY_CODE - - if (sc == NULL) - return 0; - -#endif - - if (!sc->_callback.pending()) - return 0; - - return 1; -} - /* * This routine hasn't been optimised to take advantage of the * passed sc. Yet. -- 2.47.2