r69895 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r69894‎ | r69895 | r69896 >
Date:19:36, 25 July 2010
Author:reedy
Status:ok
Tags:
Comment:
Remove some more unused stuffs
Modified paths:
  • /trunk/extensions/CodeReview/api/ApiCodeDiff.php (modified) (history)
  • /trunk/extensions/CodeReview/svnImport.php (modified) (history)
  • /trunk/extensions/CodeReview/ui/CodeRepoListView.php (modified) (history)
  • /trunk/extensions/CodeReview/ui/CodeRevisionCommitter.php (modified) (history)
  • /trunk/extensions/CodeReview/ui/CodeRevisionView.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CodeReview/svnImport.php
@@ -129,8 +129,8 @@
130130 $options
131131 );
132132 while ( $row = $dbw->fetchObject( $res ) ) {
133 - $rev = $repo->getRevision( $row->cr_id );
134 - $diff = $repo->getDiff( $row->cr_id ); // trigger caching
 133+ $repo->getRevision( $row->cr_id );
 134+ $repo->getDiff( $row->cr_id ); // trigger caching
135135 $this->output( "Diff r{$row->cr_id} done\n" );
136136 }
137137 }
Index: trunk/extensions/CodeReview/api/ApiCodeDiff.php
@@ -22,7 +22,6 @@
2323 $this->dieUsage( "Invalid repo ``{$params['repo']}''", 'invalidrepo' );
2424 }
2525
26 - $svn = SubversionAdaptor::newFromRepo( $repo->getPath() );
2726 $lastStoredRev = $repo->getLastStoredRev();
2827
2928 if ( $params['rev'] > $lastStoredRev ) {
Index: trunk/extensions/CodeReview/ui/CodeRevisionCommitter.php
@@ -43,7 +43,7 @@
4444 if ( $this->validPost( 'codereview-post-comment' ) && strlen( $this->text ) ) {
4545 $parent = $wgRequest->getIntOrNull( 'wpParent' );
4646 $review = $wgRequest->getInt( 'wpReview' );
47 - $isPreview = $wgRequest->getCheck( 'wpPreview' );
 47+ //$isPreview = $wgRequest->getCheck( 'wpPreview' );
4848 $id = $this->mRev->saveComment( $this->text, $review, $parent );
4949 // For comments, take us back to the rev page focused on the new comment
5050 if ( !$this->jumpToNext ) {
Index: trunk/extensions/CodeReview/ui/CodeRevisionView.php
@@ -173,8 +173,6 @@
174174 if ( $wgRequest->wasPosted() && $wgUser->matchEditToken( $wgRequest->getVal( 'wpEditToken' ) ) ) {
175175 // Look for a posting...
176176 $text = $wgRequest->getText( "wpReply{$this->mReplyTarget}" );
177 - $parent = $wgRequest->getIntOrNull( 'wpParent' );
178 - $review = $wgRequest->getInt( 'wpReview' );
179177 $isPreview = $wgRequest->getCheck( 'wpPreview' );
180178 if ( $isPreview ) {
181179 // Save the text for reference on later comment display...
@@ -262,8 +260,6 @@
263261 protected function statusForm() {
264262 global $wgUser;
265263 if ( $wgUser->isAllowed( 'codereview-set-status' ) ) {
266 - $repo = $this->mRepo->getName();
267 - $rev = $this->mRev->getId();
268264 return Xml::openElement( 'select', array( 'name' => 'wpStatus' ) ) .
269265 self::buildStatusList( $this->mStatus, $this ) .
270266 xml::closeElement( 'select' );
@@ -569,8 +565,7 @@
570566 $preview = '';
571567 $text = $this->text;
572568 }
573 - $repo = $this->mRepo->getName();
574 - $rev = $this->mRev->getId();
 569+
575570 if ( !$this->canPostComments() ) {
576571 return '';
577572 }
Index: trunk/extensions/CodeReview/ui/CodeRepoListView.php
@@ -12,7 +12,6 @@
1313 }
1414 $text = '';
1515 foreach ( $repos as $repo ) {
16 - $name = $repo->getName();
1716 $text .= "* " . self::getNavItem( $repo ) . "\n";
1817 }
1918 $wgOut->addWikiText( $text );

Status & tagging log