From aa5c2493cbabe7663eefc922316a6fa1d588f887 Mon Sep 17 00:00:00 2001 From: Reedy Date: Sun, 2 Nov 2014 15:47:51 +0000 Subject: [PATCH] Remove documentation hinting LinkHolderArray::replace() should return value Return value not used in any code in our repo Removes FIXME too Change-Id: Ia2ec35099f0b54ea39c2f6b9371e94c3034bddb0 --- includes/parser/LinkHolderArray.php | 6 ++---- includes/parser/Parser.php | 4 +--- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/includes/parser/LinkHolderArray.php b/includes/parser/LinkHolderArray.php index 7794fae4e7..6c1599368d 100644 --- a/includes/parser/LinkHolderArray.php +++ b/includes/parser/LinkHolderArray.php @@ -267,17 +267,15 @@ class LinkHolderArray { * Replace link placeholders with actual links, in the buffer * * @param string $text - * @return array Array of link CSS classes, indexed by PDBK. */ public function replace( &$text ) { wfProfileIn( __METHOD__ ); - /** @todo FIXME: replaceInternal doesn't return a value */ - $colours = $this->replaceInternal( $text ); + $this->replaceInternal( $text ); $this->replaceInterwiki( $text ); wfProfileOut( __METHOD__ ); - return $colours; + } /** diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 07a104bd0c..cd804b5252 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -5317,11 +5317,9 @@ class Parser { * * @param string $text * @param int $options - * - * @return array Array of link CSS classes, indexed by PDBK. */ public function replaceLinkHolders( &$text, $options = 0 ) { - return $this->mLinkHolders->replace( $text ); + $this->mLinkHolders->replace( $text ); } /** -- 2.20.1