Skip to content

Commit

Permalink
Get rid of unused xpath functions
Browse files Browse the repository at this point in the history
  • Loading branch information
veewee committed Aug 21, 2024
1 parent 7c330e3 commit dff99df
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Xml/Configurator/FlattenXsdImports.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
use function VeeWee\Xml\Dom\Manipulator\Element\copy_named_xmlns_attributes;
use function VeeWee\Xml\Dom\Manipulator\Node\append_external_node;
use function VeeWee\Xml\Dom\Manipulator\Node\remove;
use function VeeWee\Xml\Dom\Xpath\Configurator\functions;

/**
* This class deals with xsd:import, xsd:include and xsd:redefine tags.
Expand Down Expand Up @@ -240,7 +239,7 @@ private function fixRemovedDefaultXmlnsDeclarationsDuringImport(DOMElement $targ
*/
private function rearrangeImportsAsFirstElements(Document $xml): void
{
$xpath = $xml->xpath(new WsdlPreset($xml), functions(['array_reverse']));
$xpath = $xml->xpath(new WsdlPreset($xml));
$imports = $xpath
->query('//schema:import')
->expectAllOfType(DOMElement::class);
Expand Down

0 comments on commit dff99df

Please sign in to comment.