Removing unused method Status::getXML.

Removed Status::getXML and its single usage in one of the
phpunit maintenance scripts. It is not used anywhere
in any known extension.

Change-Id: I676446647681059449c46c2ff109570a060e0e20
Signed-off-by: Tyler Anthony Romeo <tylerromeo@gmail.com>
This commit is contained in:
Tyler Anthony Romeo 2012-08-15 16:54:01 -04:00 committed by Alexandre Emsenhuber
parent 74a782a082
commit cb3ff28cf1
2 changed files with 1 additions and 30 deletions

View file

@ -164,35 +164,6 @@ class Status {
return $cleanParams;
}
/**
* @param $item
* @return string
*/
protected function getItemXML( $item ) {
$params = $this->cleanParams( $item['params'] );
$xml = "<{$item['type']}>\n" .
Xml::element( 'message', null, $item['message'] ) . "\n" .
Xml::element( 'text', null, wfMessage( $item['message'], $params )->text() ) ."\n";
foreach ( $params as $param ) {
$xml .= Xml::element( 'param', null, $param );
}
$xml .= "</{$item['type']}>\n";
return $xml;
}
/**
* Get the error list as XML
* @return string
*/
function getXML() {
$xml = "<errors>\n";
foreach ( $this->errors as $error ) {
$xml .= $this->getItemXML( $error );
}
$xml .= "</errors>\n";
return $xml;
}
/**
* Get the error list as a wikitext formatted list
*

View file

@ -45,7 +45,7 @@ abstract class DumpTestCase extends MediaWikiLangTestCase {
return array( $revision_id, $text_id );
}
}
throw new MWException( "Could not determine revision id (" . $status->getXML() . ")" );
throw new MWException( "Could not determine revision id (" . $status->getWikiText() . ")" );
}