diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php
index 8ac1f5298e..019c153b5c 100644
--- a/src/__phutil_library_map__.php
+++ b/src/__phutil_library_map__.php
@@ -1903,12 +1903,10 @@ phutil_register_library_map(array(
'PonderQuestionSearchEngine' => 'applications/ponder/query/PonderQuestionSearchEngine.php',
'PonderQuestionStatus' => 'applications/ponder/constants/PonderQuestionStatus.php',
'PonderQuestionStatusController' => 'applications/ponder/controller/PonderQuestionStatusController.php',
- 'PonderQuestionSummaryView' => 'applications/ponder/view/PonderQuestionSummaryView.php',
'PonderQuestionViewController' => 'applications/ponder/controller/PonderQuestionViewController.php',
'PonderRemarkupRule' => 'applications/ponder/remarkup/PonderRemarkupRule.php',
'PonderReplyHandler' => 'applications/ponder/mail/PonderReplyHandler.php',
'PonderSearchIndexer' => 'applications/ponder/search/PonderSearchIndexer.php',
- 'PonderUserProfileView' => 'applications/ponder/view/PonderUserProfileView.php',
'PonderVotableInterface' => 'applications/ponder/storage/PonderVotableInterface.php',
'PonderVotableView' => 'applications/ponder/view/PonderVotableView.php',
'PonderVote' => 'applications/ponder/constants/PonderVote.php',
@@ -4035,12 +4033,10 @@ phutil_register_library_map(array(
'PonderQuestionSearchEngine' => 'PhabricatorApplicationSearchEngine',
'PonderQuestionStatus' => 'PonderConstants',
'PonderQuestionStatusController' => 'PonderController',
- 'PonderQuestionSummaryView' => 'AphrontView',
'PonderQuestionViewController' => 'PonderController',
'PonderRemarkupRule' => 'PhabricatorRemarkupRuleObject',
'PonderReplyHandler' => 'PhabricatorMailReplyHandler',
'PonderSearchIndexer' => 'PhabricatorSearchDocumentIndexer',
- 'PonderUserProfileView' => 'AphrontView',
'PonderVotableView' => 'AphrontView',
'PonderVote' => 'PonderConstants',
'PonderVoteEditor' => 'PhabricatorEditor',
diff --git a/src/applications/ponder/view/PonderQuestionSummaryView.php b/src/applications/ponder/view/PonderQuestionSummaryView.php
deleted file mode 100644
index 71a4056ddb..0000000000
--- a/src/applications/ponder/view/PonderQuestionSummaryView.php
+++ /dev/null
@@ -1,72 +0,0 @@
-question = $question;
- return $this;
- }
-
- public function setHandles($handles) {
- $this->handles = $handles;
- return $this;
- }
-
- public function render() {
- require_celerity_resource('ponder-feed-view-css');
-
- $user = $this->user;
- $question = $this->question;
- $author_phid = $question->getAuthorPHID();
- $handles = $this->handles;
-
- $authorlink = $handles[$author_phid]
- ->renderLink();
-
- $votecount = hsprintf(
- '
'.
- '%s'.
- '
votes
'.
- '
',
- $question->getVoteCount());
-
- $answerclass = "ponder-summary-answers";
- if ($question->getAnswercount() == 0) {
- $answerclass .= " ponder-not-answered";
- }
- $answercount = hsprintf(
- ''.
- '%s'.
- '
answers
'.
- '
',
- $question->getAnswerCount());
-
- $title = hsprintf('%s
',
- phutil_tag(
- 'a',
- array(
- "href" => '/Q' . $question->getID(),
- ),
- 'Q' . $question->getID() .
- ' ' . $question->getTitle()));
-
- $rhs = hsprintf(
- ''.
- '%s asked on %s by %s'.
- '
',
- $title,
- phabricator_datetime($question->getDateCreated(), $user),
- $authorlink);
-
- $summary = hsprintf(
- '%s%s%s
',
- $votecount,
- $answercount,
- $rhs);
-
-
- return $summary;
- }
-}
diff --git a/src/applications/ponder/view/PonderUserProfileView.php b/src/applications/ponder/view/PonderUserProfileView.php
deleted file mode 100644
index dc4a892135..0000000000
--- a/src/applications/ponder/view/PonderUserProfileView.php
+++ /dev/null
@@ -1,98 +0,0 @@
-questionoffset = $offset;
- return $this;
- }
-
- public function setAnswerOffset($offset) {
- $this->answeroffset = $offset;
- return $this;
- }
-
- public function setAnswers($data) {
- $this->answers = $data;
- return $this;
- }
-
- public function setPageSize($pagesize) {
- $this->pagesize = $pagesize;
- return $this;
- }
-
- public function setURI($uri, $aparam) {
- $this->uri = $uri;
- $this->aparam = $aparam;
- return $this;
- }
-
- public function render() {
- require_celerity_resource('ponder-feed-view-css');
-
- $user = $this->user;
- $aoffset = $this->answeroffset;
- $answers = $this->answers;
- $uri = $this->uri;
- $aparam = $this->aparam;
- $pagesize = $this->pagesize;
-
- $apagebuttons = id(new AphrontPagerView())
- ->setPageSize($pagesize)
- ->setOffset($aoffset)
- ->setURI(
- $uri
- ->setFragment('answers'),
- $aparam);
- $answers = $apagebuttons->sliceResults($answers);
-
- $view = new PhabricatorObjectItemListView();
- $view->setUser($user);
- $view->setNoDataString(pht('No matching answers.'));
-
- foreach ($answers as $answer) {
- $question = $answer->getQuestion();
- $author_phid = $question->getAuthorPHID();
-
- $item = new PhabricatorObjectItemView();
- $item->setObject($answer);
- $href = id(new PhutilURI('/Q' . $question->getID()))
- ->setFragment('A' . $answer->getID());
- $item->setHeader(
- 'A'.$answer->getID().' '.self::abbreviate($answer->getContent()));
- $item->setHref($href);
-
- $item->addAttribute(
- pht('Created %s', phabricator_date($answer->getDateCreated(), $user)));
-
- $item->addAttribute(pht('%d Vote(s)', $answer->getVoteCount()));
-
- $item->addAttribute(
- pht(
- 'Answer to %s',
- phutil_tag(
- 'a',
- array(
- 'href' => '/Q'.$question->getID(),
- ),
- self::abbreviate($question->getTitle()))));
-
- $view->addItem($item);
- }
-
- $view->appendChild($apagebuttons);
-
- return $view->render();
- }
-
- private function abbreviate($w) {
- return phutil_utf8_shorten($w, 60);
- }
-}