Hard deprecate FormatMetadata::flattenArrayContentLang

It has been deprecated since 1.36 and it is unused.

Change-Id: I316333f55526116e9510e4719fce2a93e7683ea6
This commit is contained in:
Matěj Suchánek 2022-07-06 14:49:36 +02:00
parent 3378c95852
commit 99aad54ea8
2 changed files with 4 additions and 4 deletions

View file

@ -451,6 +451,8 @@ because of Phabricator reports.
warnings.
* DifferenceEngine::textDiff(), deprecated in 1.32, now emits deprecation
warnings.
* FormatMetadata::flattenArrayContentLang(), deprecated in 1.36, now emits
deprecation warnings.
* …
=== Other changes in 1.39 ===

View file

@ -1110,19 +1110,17 @@ class FormatMetadata extends ContextSource {
* @param bool|IContextSource $context
* @return string Single value (in wiki-syntax).
* @since 1.23
* @deprecated since 1.36, appears to have no callers
* @deprecated since 1.36, appears to have no callers. Hard deprecated since 1.39.
*/
public static function flattenArrayContentLang( $vals, $type = 'ul',
$noHtml = false, $context = false
) {
wfDeprecated( __METHOD__, '1.36' );
// Allow $noHtml to be omitted.
if ( $noHtml instanceof IContextSource ) {
$context = $noHtml;
$noHtml = false;
}
if ( $noHtml ) {
wfDeprecated( __METHOD__ . ' with $noHtml = true', '1.36' );
}
$obj = new FormatMetadata;
if ( $context ) {
$obj->setContext( $context );