]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
date: 2003/01/21 00:04:10; author: wessels; state: Exp; lines: +0 -1
authorhno <>
Mon, 27 Jan 2003 15:08:51 +0000 (15:08 +0000)
committerhno <>
Mon, 27 Jan 2003 15:08:51 +0000 (15:08 +0000)
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.

src/structs.h

index 96d88690c07a823b53550d94f79c8143c4df5f4a..f2059324e42595ca9e1a1a99f93bb9b5cbaca9f2 100644 (file)
@@ -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) */