--- valid.c 2004-02-24 09:46:31.000000000 +0100 +++ valid.c.~1.183.~ 2004-02-24 09:44:57.000000000 +0100 @@ -2715,19 +2715,6 @@ } /** - * xmlDummyCompare - * @data0: Value supplied by the user - * @data1: Value supplied by the user - * - * Do nothing, return 0. Used to create unordered lists. - */ -static int -xmlDummyCompare(const void *data0, const void *data1) -{ - return (0); -} - -/** * xmlAddRef: * @ctxt: the validation context * @doc: pointer to the document @@ -2797,7 +2784,7 @@ */ if (NULL == (ref_list = xmlHashLookup(table, value))) { - if (NULL == (ref_list = xmlListCreate(xmlFreeRef, xmlDummyCompare))) { + if (NULL == (ref_list = xmlListCreate(xmlFreeRef, NULL))) { xmlErrValid(NULL, XML_ERR_INTERNAL_ERROR, "xmlAddRef: Reference list creation failed!\n", NULL);