From a4d3548d47e533eb8089d088c00602d8a1f55220 Mon Sep 17 00:00:00 2001 From: Daimona Eaytoy Date: Sat, 16 Jan 2021 16:59:42 +0100 Subject: [PATCH] Remove dead code Change-Id: I4f4065aeaf5b015679c28808be430f8af99d1294 --- includes/Variables/LazyVariableComputer.php | 23 --------------------- 1 file changed, 23 deletions(-) diff --git a/includes/Variables/LazyVariableComputer.php b/includes/Variables/LazyVariableComputer.php index 0802fdf11..ef8c946cb 100644 --- a/includes/Variables/LazyVariableComputer.php +++ b/includes/Variables/LazyVariableComputer.php @@ -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'];