Marked replaceMultiple() as deprecated

MagicWord::replaceMultiple() is completely unused in both core and
all extensions on gerrit, so it is being marked as deprecated.

Change-Id: I6289a36351a2cbc47a0cad237cc985e5c3136773
This commit is contained in:
Evan McIntire 2014-12-27 20:40:47 -05:00 committed by Umherirrender
parent f652b4b7a9
commit e6c87b54a7

View file

@ -655,7 +655,7 @@ class MagicWord {
* This method uses the php feature to do several replacements at the same time,
* thereby gaining some efficiency. The result is placed in the out variable
* $result. The return value is true if something was replaced.
* @todo Should this be static? It doesn't seem to be used at all
* @deprecated since 1.25, unused
*
* @param array $magicarr
* @param string $subject
@ -664,6 +664,7 @@ class MagicWord {
* @return bool
*/
function replaceMultiple( $magicarr, $subject, &$result ) {
wfDeprecated( __METHOD__, '1.25' );
$search = array();
$replace = array();
foreach ( $magicarr as $id => $replacement ) {