forked from github/server
unnecessary xpath wrangling
This commit is contained in:
parent
c7ae070fa7
commit
bddf4bff39
1 changed files with 1 additions and 3 deletions
|
@ -218,7 +218,6 @@ static void
|
||||||
xml_readconstruction(xmlXPathContextPtr xpath, xmlNodeSetPtr nodeSet,
|
xml_readconstruction(xmlXPathContextPtr xpath, xmlNodeSetPtr nodeSet,
|
||||||
construction **consPtr, bool is_building)
|
construction **consPtr, bool is_building)
|
||||||
{
|
{
|
||||||
xmlNodePtr pushNode = xpath->node;
|
|
||||||
int k;
|
int k;
|
||||||
for (k = 0; k != nodeSet->nodeNr; ++k) {
|
for (k = 0; k != nodeSet->nodeNr; ++k) {
|
||||||
xmlNodePtr node = nodeSet->nodeTab[k];
|
xmlNodePtr node = nodeSet->nodeTab[k];
|
||||||
|
@ -263,7 +262,6 @@ construction ** consPtr, bool is_building)
|
||||||
req->nodesetval->nodeNr, &con->materials);
|
req->nodesetval->nodeNr, &con->materials);
|
||||||
xmlXPathFreeObject(req);
|
xmlXPathFreeObject(req);
|
||||||
}
|
}
|
||||||
xpath->node = pushNode;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|
Loading…
Reference in a new issue