Remove unused XMLReader2 class
authorThis, that and the other <at.light@live.com.au>
Thu, 24 Jul 2014 07:41:02 +0000 (17:41 +1000)
committerThis, that and the other <at.light@live.com.au>
Sat, 26 Jul 2014 01:53:51 +0000 (11:53 +1000)
Undocumented and unused within core. Was previously used in WikiImporter,
but that use was removed in r81437.

Change-Id: I45f4ff3fae19a7d9c1a0dacb2e02d53ee4bdaefb

RELEASE-NOTES-1.24
includes/AutoLoader.php
includes/Import.php

index cd24ef0..3354957 100644 (file)
@@ -321,6 +321,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 8eab3be..2eb5667 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