removed unused code or variables, from Stefan Kost fixing #336163 and
* xmlschemas.c: removed unused code or variables, from Stefan Kost
fixing #336163 and #336164
Daniel
diff --git a/xmlschemas.c b/xmlschemas.c
index 47af067..d64949d 100644
--- a/xmlschemas.c
+++ b/xmlschemas.c
@@ -3010,7 +3010,7 @@
xmlSchemaTypePtr type,
xmlSchemaFacetPtr facet)
{
- xmlChar *des = NULL, *strT = NULL;
+ xmlChar *des = NULL;
xmlSchemaFormatItemForReport(&des, NULL, WXS_BASIC_CAST type,
type->node);
@@ -3018,7 +3018,6 @@
"%s: The facet '%s' is not allowed.\n",
BAD_CAST des, xmlSchemaFacetTypeToString(facet->type));
FREE_AND_NULL(des);
- FREE_AND_NULL(strT);
}
/**
@@ -6964,11 +6963,6 @@
return (NULL);
xmlSchemaPValAttrID(ctxt, node, BAD_CAST "id");
- if (IS_SCHEMA(child, "annotation")) {
- ret->annot = xmlSchemaParseAnnotation(ctxt, child, 1);
- child = child->next;
- }
-
child = node->children;
if (IS_SCHEMA(child, "annotation")) {
ret->annot = xmlSchemaParseAnnotation(ctxt, child, 1);