From: wessels <> Date: Tue, 28 Oct 1997 05:54:37 +0000 (+0000) Subject: remove HIER_EXPERIMENT code X-Git-Tag: SQUID_3_0_PRE1~4662 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9d04e86d13310483adbb0b319ae3f7e36bc4ad14;p=thirdparty%2Fsquid.git remove HIER_EXPERIMENT code --- diff --git a/src/neighbors.cc b/src/neighbors.cc index d33d8622ea..29091b65e2 100644 --- a/src/neighbors.cc +++ b/src/neighbors.cc @@ -1,5 +1,5 @@ /* - * $Id: neighbors.cc,v 1.163 1997/10/26 02:35:36 wessels Exp $ + * $Id: neighbors.cc,v 1.164 1997/10/27 22:54:37 wessels Exp $ * * DEBUG: section 15 Neighbor Routines * AUTHOR: Harvest Derived @@ -334,31 +334,6 @@ getDefaultParent(request_t * request) return NULL; } -#ifdef HIER_EXPERIMENT -peer * -getRandomParent(request_t * request) -{ - peer *e; - static peer *f = NULL; - peer *next = f; - int n = squid_random() % Peers.n; - int x = n << 1; - while (n && x--) { - e = next ? next : Peers.peers_head; - next = e->next; - if (neighborType(e, request) != PEER_PARENT) - continue; - if (!peerHTTPOkay(e, request)) - continue; - f = e; - n--; - } - if (f && !peerHTTPOkay(f, request)) - return NULL; - return f; -} -#endif - peer * getNextPeer(peer * p) { diff --git a/src/stat.cc b/src/stat.cc index 921d35a2f7..2976524a3e 100644 --- a/src/stat.cc +++ b/src/stat.cc @@ -1,6 +1,6 @@ /* - * $Id: stat.cc,v 1.163 1997/10/27 22:53:12 wessels Exp $ + * $Id: stat.cc,v 1.164 1997/10/27 22:54:38 wessels Exp $ * * DEBUG: section 18 Cache Manager Statistics * AUTHOR: Harvest Derived @@ -110,10 +110,6 @@ #define MAX_LINELEN (4096) #define max(a,b) ((a)>(b)? (a): (b)) -#ifdef HIER_EXPERIMENT -static FILE *hierexplog = NULL; -#endif - typedef struct _log_read_data_t { StoreEntry *sentry; } log_read_data_t;