]> 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)
committerAmos Jeffries <yadij@users.noreply.github.com>
Thu, 23 Feb 2023 12:34:13 +0000 (01:34 +1300)
Unused since 2002 commit edce4d9.

src/StoreClient.h
src/store_client.cc

index 34cea4b532b955e02cd9db2bf23a6368e5073dfc..eefc9391c94a0a3704685c63707f764c8be1e0d7 100644 (file)
@@ -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);
index ff472aa1d4dbcde34430795b79d49fd94b5c1c76..9ec027f806ec38c076cef8f4d3802a9f0bf08ce0 100644 (file)
@@ -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.