Remove unnecessary code.
This commit is contained in:
parent
d68573b245
commit
06dede7043
|
@ -12,13 +12,12 @@ void extension_cow_term(xmlXPathParserContextPtr ctxt,
|
||||||
int nargs)
|
int nargs)
|
||||||
{
|
{
|
||||||
xmlChar *str, *ret;
|
xmlChar *str, *ret;
|
||||||
int str_l, month;
|
int month;
|
||||||
|
|
||||||
if (nargs != 1) {
|
if (nargs != 1) {
|
||||||
xmlXPathSetArityError(ctxt);
|
xmlXPathSetArityError(ctxt);
|
||||||
}
|
}
|
||||||
str = xmlXPathPopString(ctxt);
|
str = xmlXPathPopString(ctxt);
|
||||||
str_l = xmlUTF8Strlen(str);
|
|
||||||
|
|
||||||
month = (str[5] - '0')*10 + (str[6] - '0');
|
month = (str[5] - '0')*10 + (str[6] - '0');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue