]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
remove HIER_EXPERIMENT code
authorwessels <>
Tue, 28 Oct 1997 05:54:37 +0000 (05:54 +0000)
committerwessels <>
Tue, 28 Oct 1997 05:54:37 +0000 (05:54 +0000)
src/neighbors.cc
src/stat.cc

index d33d8622ea0f51b0e31393cf70a81d62d5330162..29091b65e2ec3a3d52e526634a390bd9578b8935 100644 (file)
@@ -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)
 {
index 921d35a2f7ad3b6ad8a3b18aedbbd135a37cdf84..2976524a3e22ce85df9390039e21bc7373220d16 100644 (file)
@@ -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
 #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;