From: wessels <> Date: Tue, 6 Jan 1998 12:15:39 +0000 (+0000) Subject: remove UNUSED and OLD code X-Git-Tag: SQUID_3_0_PRE1~4243 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=164a44a8872072f5dffd2a196df225c08a8900a1;p=thirdparty%2Fsquid.git remove UNUSED and OLD code --- diff --git a/src/client_side.cc b/src/client_side.cc index 61b263c318..e347ecbc16 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side.cc,v 1.191 1998/01/06 05:12:07 wessels Exp $ + * $Id: client_side.cc,v 1.192 1998/01/06 05:15:39 wessels Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -42,9 +42,6 @@ static const char *const proxy_auth_line = static CWCB clientHandleIMSComplete; static CWCB clientWriteComplete; -#if UNUSED_CODE -static CWCB clientShortWriteComplete; -#endif static PF clientReadRequest; static PF connStateFree; static PF requestTimeout; @@ -62,9 +59,6 @@ static RH clientRedirectDone; static STCB clientHandleIMSReply; static int clientGetsOldEntry(StoreEntry * new, StoreEntry * old, request_t * request); static int checkAccelOnly(clientHttpRequest *); -#if UNUSED_CODE -static ERCB clientErrorComplete; -#endif static STCB clientSendMoreData; static STCB clientCacheHit; static void clientParseRequestHeaders(clientHttpRequest *); @@ -740,17 +734,6 @@ clientHierarchical(clientHttpRequest * http) return 1; } -#if UNUSED_CODE -static void -clientErrorComplete(int fd, void *data, size_t size) -{ - clientHttpRequest *http = data; - if (http) - http->out.size += size; - comm_close(fd); -} -#endif - int isTcpHit(log_type code) { @@ -1138,17 +1121,6 @@ clientHandleIMSComplete(int fd, char *bufnotused, size_t size, int flag, void *d comm_close(fd); } -#if UNUSED_CODE -static void -clientShortWriteComplete(int fd, char *bufnotused, size_t size, int flag, void *data) -{ - clientHttpRequest *http = data; - http->out.size += size; - if (flag != COMM_ERR_CLOSING) - comm_close(fd); -} -#endif - static log_type clientProcessRequest2(clientHttpRequest * http) { diff --git a/src/defines.h b/src/defines.h index 7ad048c641..b6eb508237 100644 --- a/src/defines.h +++ b/src/defines.h @@ -59,8 +59,7 @@ #define FD_DESC_SZ 64 -#define FQDN_FLAG_UNUSED_01 0x01 -#define FQDN_LOOKUP_IF_MISS 0x02 +#define FQDN_LOOKUP_IF_MISS 0x01 #define FQDN_MAX_NAMES 5 #define FQDNCACHE_AV_FACTOR 1000 @@ -99,8 +98,7 @@ #define IDENT_PENDING 1 #define IDENT_DONE 2 -#define IP_UNUSED_FLAG_01 0x01 -#define IP_LOOKUP_IF_MISS 0x02 +#define IP_LOOKUP_IF_MISS 0x01 #define IPCACHE_AV_FACTOR 1000 @@ -138,12 +136,6 @@ #define SM_PAGE_SIZE 4096 #define DISK_PAGE_SIZE 8192 -#if UNUSED_CODE -#define BIT_SET(flag, bit) ((flag) |= (bit)) -#define BIT_CLR(flag, bit) ((flag) &= ~(bit)) -#define BIT_TEST(flag, bit) ((flag) & (bit)) -#endif - #define EBIT_SET(flag, bit) ((flag) |= ((1<flags, HELPER_ALIVE)) { diff --git a/src/fqdncache.cc b/src/fqdncache.cc index 8c586e9344..c2b250daeb 100644 --- a/src/fqdncache.cc +++ b/src/fqdncache.cc @@ -1,6 +1,6 @@ /* - * $Id: fqdncache.cc,v 1.76 1998/01/02 22:03:41 wessels Exp $ + * $Id: fqdncache.cc,v 1.77 1998/01/06 05:15:40 wessels Exp $ * * DEBUG: section 35 FQDN Cache * AUTHOR: Harvest Derived @@ -793,20 +793,6 @@ fqdnFromAddr(struct in_addr addr) return buf; } -#if OLD_CODE -int -fqdncacheQueueDrain(void) -{ - fqdncache_entry *i; - dnsserver_t *dnsData; - if (!fqdncacheQueueHead) - return 0; - while ((dnsData = dnsGetFirstAvailable()) && (i = fqdncacheDequeue())) - fqdncache_dnsDispatch(dnsData, i); - return 1; -} -#endif - static void fqdncacheLockEntry(fqdncache_entry * f) { diff --git a/src/ipcache.cc b/src/ipcache.cc index d09b655161..ca8b24ef92 100644 --- a/src/ipcache.cc +++ b/src/ipcache.cc @@ -1,6 +1,6 @@ /* - * $Id: ipcache.cc,v 1.152 1998/01/02 22:03:40 wessels Exp $ + * $Id: ipcache.cc,v 1.153 1998/01/06 05:15:41 wessels Exp $ * * DEBUG: section 14 IP Cache * AUTHOR: Harvest Derived @@ -873,17 +873,6 @@ ipcacheCheckNumeric(const char *name) return &static_addrs; } -#if OLD_CODE -int -ipcacheQueueDrain(void) -{ - if (!ipcacheQueueHead) - return 0; - ipcacheNudgeQueue(); - return 1; -} -#endif - static void ipcacheLockEntry(ipcache_entry * i) {