From 1bff6d74281292a7987c8684403e741ce4498723 Mon Sep 17 00:00:00 2001 From: Reedy Date: Sun, 9 Dec 2012 02:37:10 +0000 Subject: [PATCH] Remove unreachable lines Change-Id: Ie7ec14f4ce65bc87b0cd49ec9266c394770ee7c4 --- tests/phpunit/includes/parser/PreprocessorTest.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tests/phpunit/includes/parser/PreprocessorTest.php b/tests/phpunit/includes/parser/PreprocessorTest.php index 362d9f7426..8b83b674aa 100644 --- a/tests/phpunit/includes/parser/PreprocessorTest.php +++ b/tests/phpunit/includes/parser/PreprocessorTest.php @@ -119,7 +119,7 @@ class PreprocessorTest extends MediaWikiTestCase { if ( method_exists( $this->mPreprocessor, 'preprocessToXml' ) ) { return $this->normalizeXml( $this->mPreprocessor->preprocessToXml( $wikiText ) ); } - + $dom = $this->mPreprocessor->preprocessToObj( $wikiText ); if ( is_callable( array( $dom, 'saveXML' ) ) ) { return $dom->saveXML(); @@ -136,11 +136,6 @@ class PreprocessorTest extends MediaWikiTestCase { */ function normalizeXml( $xml ) { return preg_replace( '!<([a-z]+)/>!', '<$1>', str_replace( ' />', '/>', $xml ) ); - - $dom = new DOMDocument(); - // 1 << 19 == XML_PARSE_HUGE, needed so newer versions of libxml2 don't barf when the XML is >256 levels deep - $dom->loadXML( $xml, 1 << 19 ); - return $dom->saveXML(); } /** -- 2.20.1