1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-28 00:10:57 +01:00

Remove setObjectName from PHUIHeaderView

Summary: This isn't used much (once?) and it's not needed. Fixes T8876

Test Plan: Grep for setObjectName and see if its PHUIHeaderView.

Reviewers: btrahan, epriestley

Reviewed By: epriestley

Subscribers: epriestley, Korvin

Maniphest Tasks: T8876

Differential Revision: https://secure.phabricator.com/D13645
This commit is contained in:
Chad Little 2015-07-17 10:31:38 -07:00
parent 259a412fcd
commit f53128cab4
2 changed files with 0 additions and 19 deletions

View file

@ -45,7 +45,6 @@ final class FundInitiativeViewController
$initiative->getStatus());
$header = id(new PHUIHeaderView())
->setObjectName($initiative->getMonogram())
->setHeader($initiative->getName())
->setUser($viewer)
->setPolicyObject($initiative)

View file

@ -4,7 +4,6 @@ final class PHUIHeaderView extends AphrontTagView {
const PROPERTY_STATUS = 1;
private $objectName;
private $header;
private $tags = array();
private $image;
@ -27,11 +26,6 @@ final class PHUIHeaderView extends AphrontTagView {
return $this;
}
public function setObjectName($object_name) {
$this->objectName = $object_name;
return $this;
}
public function setNoBackground($nada) {
$this->noBackground = $nada;
return $this;
@ -193,18 +187,6 @@ final class PHUIHeaderView extends AphrontTagView {
->setObject($this->policyObject);
}
if ($this->objectName) {
$left[] = array(
phutil_tag(
'a',
array(
'href' => '/'.$this->objectName,
),
$this->objectName),
' ',
);
}
if ($this->actionLinks) {
$actions = array();
foreach ($this->actionLinks as $button) {