Aaron Schulz has submitted this change and it was merged.

Change subject: Removed unused expandText() method
......................................................................


Removed unused expandText() method

Change-Id: I64edd7374c5ad597d53f589eb778f05a9066f98e
---
M backend/FlaggedRevs.class.php
1 file changed, 0 insertions(+), 34 deletions(-)

Approvals:
  BryanDavis: Looks good to me, approved
  Aaron Schulz: Verified



diff --git a/backend/FlaggedRevs.class.php b/backend/FlaggedRevs.class.php
index 87d82e1..a1e1f02 100644
--- a/backend/FlaggedRevs.class.php
+++ b/backend/FlaggedRevs.class.php
@@ -520,40 +520,6 @@
        # ################ Parsing functions #################
 
        /**
-        * All templates and arguments in $text are expanded out
-        * @param Title $title
-        * @param string $text wikitext
-        * @param int $id Source revision Id
-        * @param ParserOptions $pOpts
-        * @return array( string wikitext, array of template versions )
-        */
-       public static function expandText( Title $title, $text, $id, 
ParserOptions $pOpts ) {
-               global $wgParser;
-               # Notify Parser if includes should be stabilized
-               $resetManager = false;
-               $incManager = FRInclusionManager::singleton();
-               if ( $id && self::inclusionSetting() != FR_INCLUDES_CURRENT ) {
-                       # Use FRInclusionManager to do the template/file 
version query
-                       # up front unless the versions are already specified 
there...
-                       if ( !$incManager->parserOutputIsStabilized() ) {
-                               $frev = FlaggedRevision::newFromTitle( $title, 
$id );
-                               if ( $frev ) {
-                                       $incManager->stabilizeParserOutput( 
$frev );
-                                       $resetManager = true; // need to reset 
when done
-                               }
-                       }
-               }
-               $outputText = $wgParser->preprocess( $text, $title, $pOpts, $id 
);
-               $pOutput = $wgParser->getOutput();
-               # Stable parse done!
-               if ( $resetManager ) {
-                       $incManager->clear(); // reset the FRInclusionManager 
as needed
-               }
-               # Return data array
-               return array( $outputText, $pOutput->getTemplateIds() );
-       }
-
-       /**
         * Get the HTML output of a revision.
         * @param FlaggedRevision $frev
         * @param ParserOptions $pOpts

-- 
To view, visit https://gerrit.wikimedia.org/r/95080
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I64edd7374c5ad597d53f589eb778f05a9066f98e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/FlaggedRevs
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>
Gerrit-Reviewer: Aaron Schulz <[email protected]>
Gerrit-Reviewer: BryanDavis <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to