From: hno <> Date: Mon, 27 Jan 2003 15:08:51 +0000 (+0000) Subject: date: 2003/01/21 00:04:10; author: wessels; state: Exp; lines: +0 -1 X-Git-Tag: SQUID_3_0_PRE1~428 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=85e28c9b4f18bc532365e6855e1fd5cb3b18e4aa;p=thirdparty%2Fsquid.git date: 2003/01/21 00:04:10; author: wessels; state: Exp; lines: +0 -1 peer_select_alg_t type is not really used anywhere. No code sets clientHttpRequest->HierarchyLogEntry->alg and the switch statement in clientUpdateCounters() does nothing. This patch removes peer_select_alg_t and HierarchyLogEntry->alg, and changes the switch statement to use HierarchyLogEntry->code instead. --- diff --git a/src/structs.h b/src/structs.h index 96d88690c0..f2059324e4 100644 --- a/src/structs.h +++ b/src/structs.h @@ -1,6 +1,6 @@ /* - * $Id: structs.h,v 1.442 2003/01/23 00:37:27 robertc Exp $ + * $Id: structs.h,v 1.443 2003/01/27 08:08:51 hno Exp $ * * * SQUID Web Proxy Cache http://www.squid-cache.org/ @@ -823,7 +823,6 @@ struct _HierarchyLogEntry { char host[SQUIDHOSTNAMELEN]; ping_data ping; char cd_host[SQUIDHOSTNAMELEN]; /* the host of selected by cd peer */ - peer_select_alg_t alg; /* peer selection algorithm */ lookup_t cd_lookup; /* cd prediction: none, miss, hit */ int n_choices; /* #peers we selected from (cd only) */ int n_ichoices; /* #peers with known rtt we selected from (cd only) */