Merge "Remove unused XMLReader2 class"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sun, 27 Jul 2014 00:19:08 +0000 (00:19 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sun, 27 Jul 2014 00:19:08 +0000 (00:19 +0000)
RELEASE-NOTES-1.24
includes/AutoLoader.php
includes/Import.php

index fa24dad..119f1a2 100644 (file)
@@ -322,6 +322,7 @@ changes to languages because of Bugzilla reports.
 * HistoryPage - Use HistoryAction directly
 * RawPage - Use RawAction directly
 * StubContLang - Use Language::factory() instead
+* XMLReader2 - Use XMLReader directly
 
 == Compatibility ==
 
index f35b380..ab5af1b 100644 (file)
@@ -193,7 +193,6 @@ $wgAutoloadLocalClasses = array(
        'Xml' => 'includes/Xml.php',
        'XmlDumpWriter' => 'includes/Export.php',
        'XmlJsCode' => 'includes/Xml.php',
-       'XMLReader2' => 'includes/Import.php',
        'XmlSelect' => 'includes/Xml.php',
 
        # includes/actions
index 1448279..e6b5dc2 100644 (file)
@@ -1050,30 +1050,6 @@ class UploadSourceAdapter {
        }
 }
 
-class XMLReader2 extends XMLReader {
-
-       /**
-        * @return bool|string
-        */
-       function nodeContents() {
-               if ( $this->isEmptyElement ) {
-                       return "";
-               }
-               $buffer = "";
-               while ( $this->read() ) {
-                       switch ( $this->nodeType ) {
-                       case XmlReader::TEXT:
-                       case XmlReader::SIGNIFICANT_WHITESPACE:
-                               $buffer .= $this->value;
-                               break;
-                       case XmlReader::END_ELEMENT:
-                               return $buffer;
-                       }
-               }
-               return $this->close();
-       }
-}
-
 /**
  * @todo document (e.g. one-sentence class description).
  * @ingroup SpecialPage