Remove deprecated ChangesList::newFromUser function

newFromUser() is unused in core and all extensions in gerrit,
except BlueSpiceExtensions RSSStandards. (there is a
patch for that I1455052)

Change-Id: I4559146cc0e9973e6e4f6297138cbfd8e387e8b7
This commit is contained in:
aude 2013-11-07 02:14:28 +01:00
parent 4b60bdab97
commit 4ba5a09d05

View file

@ -49,19 +49,6 @@ class ChangesList extends ContextSource {
$this->preCacheMessages();
}
/**
* Fetch an appropriate changes list class for the main context
* This first argument used to be an User object.
*
* @deprecated in 1.18; use newFromContext() instead
* @param string|User $unused Unused
* @return ChangesList|EnhancedChangesList|OldChangesList derivative
*/
public static function newFromUser( $unused ) {
wfDeprecated( __METHOD__, '1.18' );
return self::newFromContext( RequestContext::getMain() );
}
/**
* Fetch an appropriate changes list class for the specified context
* Some users might want to use an enhanced list format, for instance