From: Reedy Date: Sun, 2 Nov 2014 15:47:51 +0000 (+0000) Subject: Remove documentation hinting LinkHolderArray::replace() should return value X-Git-Tag: 1.31.0-rc.0~13338 X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=commitdiff_plain;h=aa5c2493cbabe7663eefc922316a6fa1d588f887;p=lhc%2Fweb%2Fwiklou.git Remove documentation hinting LinkHolderArray::replace() should return value Return value not used in any code in our repo Removes FIXME too Change-Id: Ia2ec35099f0b54ea39c2f6b9371e94c3034bddb0 --- 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 ); } /**