From bddf4bff39512830c9670ebee941ccc6c9ba3844 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Tue, 1 May 2018 10:47:17 +0200 Subject: [PATCH] unnecessary xpath wrangling --- src/xmlreader.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/xmlreader.c b/src/xmlreader.c index 03f016986..348146d51 100644 --- a/src/xmlreader.c +++ b/src/xmlreader.c @@ -216,9 +216,8 @@ xml_readrequirements(xmlNodePtr * nodeTab, int nodeNr, requirement ** reqArray) static void xml_readconstruction(xmlXPathContextPtr xpath, xmlNodeSetPtr nodeSet, -construction ** consPtr, bool is_building) + construction **consPtr, bool is_building) { - xmlNodePtr pushNode = xpath->node; int k; for (k = 0; k != nodeSet->nodeNr; ++k) { xmlNodePtr node = nodeSet->nodeTab[k]; @@ -263,7 +262,6 @@ construction ** consPtr, bool is_building) req->nodesetval->nodeNr, &con->materials); xmlXPathFreeObject(req); } - xpath->node = pushNode; } static int