]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Removed unused storeClientCopyPending() (#1282)
authorAlex Rousskov <rousskov@measurement-factory.com>
Mon, 20 Feb 2023 00:06:21 +0000 (00:06 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Mon, 20 Feb 2023 00:06:30 +0000 (00:06 +0000)
Unused since 2002 commit edce4d9.

src/StoreClient.h
src/store_client.cc

index 47106617d856b6649a8176f472606566762cdfdc..08026e75bed1a7bff407696e52240792bdd1007c 100644 (file)
@@ -175,7 +175,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);
index c6486dae1e8677049d454f9533f0020b49e2f946..b213c89d340a0631a49709b6bcb57034055c96b4 100644 (file)
@@ -650,24 +650,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));
-#else
-    (void)data;
-#endif
-
-    assert(sc);
-    assert(sc->entry == e);
-
-    if (!sc->_callback.pending())
-        return 0;
-
-    return 1;
-}
-
 /*
  * This routine hasn't been optimised to take advantage of the
  * passed sc. Yet.