From 5eb9bce6d4cd935fb0ca2f5b13364fe6695e2c22 Mon Sep 17 00:00:00 2001 From: epriestley Date: Wed, 2 Feb 2011 19:44:12 -0800 Subject: [PATCH] Remove some commented-out versions of some stuff that works now. --- .../DifferentialRevisionViewController.php | 145 ------------------ 1 file changed, 145 deletions(-) diff --git a/src/applications/differential/controller/revisionview/DifferentialRevisionViewController.php b/src/applications/differential/controller/revisionview/DifferentialRevisionViewController.php index 78cf947987..cc73c7a364 100644 --- a/src/applications/differential/controller/revisionview/DifferentialRevisionViewController.php +++ b/src/applications/differential/controller/revisionview/DifferentialRevisionViewController.php @@ -855,33 +855,6 @@ class DifferentialRevisionViewController extends DifferentialController { } } - $detail_view = - getStr('whitespace')} />; - - $table_of_contents = - ; - - $implied_feedback = array(); - foreach (array( - 'summarize' => $revision->getSummary(), - 'testplan' => $revision->getTestPlan(), - 'annotate' => $revision->getNotes(), - ) as $type => $text) { - if (!strlen($text)) { - continue; - } - $implied_feedback[] = id(new DifferentialFeedback()) - ->setUserID($revision->getOwnerID()) - ->setAction($type) - ->setDateCreated($revision->getDateCreated()) - ->setContent($text); - } $feedback = id(new DifferentialFeedback())->loadAllWithRevision($revision); $feedback = array_merge($implied_feedback, $feedback); @@ -971,14 +944,6 @@ class DifferentialRevisionViewController extends DifferentialController { $quick_links = $this->getQuickLinks($revision); - $edit_link = null; - if ($revision->getOwnerID() == $viewer_id) { - $edit_link = '/differential/revision/edit/'.$revision->getID().'/'; - $edit_link = - - {' '}(Edit Revision) - ; - } $info =
@@ -994,48 +959,12 @@ class DifferentialRevisionViewController extends DifferentialController { $actions = $this->getRevisionActions($revision); $revision_id = $revision->getID(); - Javelin::initBehavior( - 'differential-feedback-preview', - array( - 'uri' => '/differential/preview/'.$revision->getFBID().'/', - 'preview' => 'overall-feedback-preview', - 'action' => 'feedback-action', - 'content' => 'feedback-content', - )); - - Javelin::initBehavior( - 'differential-inline-comment-preview', - array( - 'uri' => '/differential/inline-preview/'.$revision_id.'/'.$new.'/', - 'preview' => 'inline-comment-preview', - )); - $content = SavedCopy::loadData( $viewer_id, SavedCopy::Type_DifferentialRevisionFeedback, $revision->getFBID()); - $inline_comment_container = -

Loading...

; - - $feedback = id(new DifferentialFeedback()) - ->setAction('none') - ->setUserID($viewer_id) - ->setContent($content); - - $preview = - ; - $syntax_link = 'reviewer-tokenizer-row', )); - $feedback_form = - -