SpecialUndelete: Remove commented-out code
authorBartosz Dziewoński <matma.rex@gmail.com>
Tue, 25 Jul 2017 17:20:31 +0000 (19:20 +0200)
committerJforrester <jforrester@wikimedia.org>
Wed, 26 Jul 2017 01:57:38 +0000 (01:57 +0000)
This has been commented-out since 2006 (8a42f0b1 / r14777).
I think it's safe to bet it won't be needed again.

Change-Id: Ice85b734803fd5e5d98692ca284a987f17712bc1

includes/specials/SpecialUndelete.php

index 39904b0..e7478ee 100644 (file)
@@ -669,13 +669,7 @@ class SpecialUndelete extends SpecialPage {
 
                $archive = new PageArchive( $this->mTargetObj, $this->getConfig() );
                Hooks::run( 'UndeleteForm::showHistory', [ &$archive, $this->mTargetObj ] );
-               /*
-               $text = $archive->getLastRevisionText();
-               if( is_null( $text ) ) {
-                       $out->addWikiMsg( 'nohistory' );
-                       return;
-               }
-               */
+
                $out->addHTML( '<div class="mw-undelete-history">' );
                if ( $this->mAllowed ) {
                        $out->addWikiMsg( 'undeletehistory' );