From fa7e5608085dbc78eff39163ae61ccaa9fac98cd Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 29 Nov 2008 16:52:10 +0000 Subject: [PATCH] Remove unused function --- includes/Article.php | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) 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 */ -- 2.20.1