diff --git a/src/applications/almanac/management/AlmanacManagementWorkflow.php b/src/applications/almanac/management/AlmanacManagementWorkflow.php --- a/src/applications/almanac/management/AlmanacManagementWorkflow.php +++ b/src/applications/almanac/management/AlmanacManagementWorkflow.php @@ -26,20 +26,4 @@ return $services; } - protected function updateServiceLock(AlmanacService $service, $lock) { - $almanac_phid = id(new PhabricatorAlmanacApplication())->getPHID(); - - $xaction = id(new AlmanacServiceTransaction()) - ->setTransactionType(AlmanacServiceTransaction::TYPE_LOCK) - ->setNewValue((int)$lock); - - $editor = id(new AlmanacServiceEditor()) - ->setActor($this->getViewer()) - ->setActingAsPHID($almanac_phid) - ->setContentSource($this->newContentSource()) - ->setContinueOnMissingFields(true); - - $editor->applyTransactions($service, array($xaction)); - } - } diff --git a/src/applications/almanac/storage/AlmanacServiceTransaction.php b/src/applications/almanac/storage/AlmanacServiceTransaction.php --- a/src/applications/almanac/storage/AlmanacServiceTransaction.php +++ b/src/applications/almanac/storage/AlmanacServiceTransaction.php @@ -4,7 +4,6 @@ extends AlmanacTransaction { const TYPE_NAME = 'almanac:service:name'; - const TYPE_LOCK = 'almanac:service:lock'; public function getApplicationTransactionType() { return AlmanacServicePHIDType::TYPECONST; @@ -30,17 +29,6 @@ $new); } break; - case self::TYPE_LOCK: - if ($new) { - return pht( - '%s locked this service.', - $this->renderHandleLink($author_phid)); - } else { - return pht( - '%s unlocked this service.', - $this->renderHandleLink($author_phid)); - } - break; } return parent::getTitle();