From: Aaron Schulz Date: Sat, 29 Nov 2008 16:52:10 +0000 (+0000) Subject: Remove unused function X-Git-Tag: 1.31.0-rc.0~44170 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=fa7e5608085dbc78eff39163ae61ccaa9fac98cd;p=lhc%2Fweb%2Fwiklou.git Remove unused function --- diff --git a/includes/Article.php b/includes/Article.php index ee2d889a57..7c80af53ac 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1264,7 +1264,7 @@ class Article { /** * @return string Complete article text, or null if error */ - function replaceSection( $section, $text, $summary = '', $edittime = NULL ) { + public function replaceSection( $section, $text, $summary = '', $edittime = NULL ) { wfProfileIn( __METHOD__ ); if( $section === '' ) { // Whole-page edit; let the whole text through @@ -1347,7 +1347,7 @@ class Article { } $dbw = wfGetDB( DB_MASTER ); - if($watchthis) { + if( $watchthis ) { if(!$this->mTitle->userIsWatching()) { $dbw->begin(); $this->doWatch(); @@ -2294,17 +2294,6 @@ class Article { LogEventsList::showLogExtract( $wgOut, 'delete', $this->mTitle->getPrefixedText() ); } - - /** - * Show relevant lines from the deletion log - */ - public function showLogExtract( $out ) { - wfDeprecated( __METHOD__ ); - $out->addHTML( Xml::element( 'h2', null, LogPage::logName( 'delete' ) ) ); - LogEventsList::showLogExtract( $out, 'delete', $this->mTitle->getPrefixedText() ); - } - - /** * Perform a deletion and output success or failure messages */