Remove dead code

Change-Id: I4f4065aeaf5b015679c28808be430f8af99d1294
This commit is contained in:
Daimona Eaytoy 2021-01-16 16:59:42 +01:00
parent 717abf4300
commit a4d3548d47

View file

@ -243,32 +243,9 @@ class LazyVariableComputer {
$result = preg_replace( $re, '', $newHTML );
}
self::$profilingExtraTime += ( microtime( true ) - $startTime );
break;
}
// Otherwise fall back to database
$textVar = $parameters['wikitext-var'];
if ( $article->getContentModel() === CONTENT_MODEL_WIKITEXT ) {
if ( isset( $parameters['pst'] ) && $parameters['pst'] ) {
// $textVar is already PSTed when it's not loaded from an ongoing edit.
$result = $getVarCB( $textVar )->toString();
} else {
$text = $getVarCB( $textVar )->toString();
$editInfo = $this->parseNonEditWikitext(
$text,
$article,
$parameters['contextUser']
);
$result = $editInfo->output->getText();
}
} else {
// TODO: Parser Output from Content object. But we don't have the content object.
// And for non-text content, $wikitext is usually not going to be a valid
// serialization, but rather some dummy text for filtering.
$result = '';
}
break;
case 'strip-html':
$htmlVar = $parameters['html-var'];