--------------------- PatchSet 1390 Date: 2005/05/20 07:02:00 Author: rmartinez Branch: squid3-ipv6 Tag: (none) Log: Restoring harmony. Undo the previous stupid patch on List template Members: include/List.h:1.4.6.1->1.4.6.2 Index: squid3/include/List.h =================================================================== RCS file: /cvsroot/squid-sf//squid3/include/List.h,v retrieving revision 1.4.6.1 retrieving revision 1.4.6.2 diff -u -r1.4.6.1 -r1.4.6.2 --- squid3/include/List.h 19 May 2005 14:22:00 -0000 1.4.6.1 +++ squid3/include/List.h 20 May 2005 07:02:00 -0000 1.4.6.2 @@ -1,6 +1,6 @@ /* - * $Id: List.h,v 1.4.6.1 2005/05/19 14:22:00 rmartinez Exp $ + * $Id: List.h,v 1.4.6.2 2005/05/20 07:02:00 rmartinez Exp $ * * * SQUID Web Proxy Cache http://www.squid-cache.org/ @@ -43,11 +43,9 @@ void *operator new (size_t); void operator delete (void *); List (C const &); - List(void const * &,ssize_t) ; ~List(); bool find(C const &)const; - bool find(const void * &,ssize_t)const; bool findAndTune(C const &); List *next; C element; @@ -103,12 +101,6 @@ {} template -List::List(void const * &value,ssize_t size) : next(NULL) -{ - memcpy((void *)&element,value,size); -} - -template List::~List() { if (next) @@ -128,19 +120,6 @@ return false; } -template -bool -List::find (const void * &toFind,ssize_t size) const -{ - List const *node = NULL; - - for (node = this; node; node = node->next) - if (memcmp((void *)&node->element, toFind,size)==0) - return true; - - return false; -} - template