diff --git a/src/applications/repository/controller/PhabricatorRepositoryController.php b/src/applications/repository/controller/PhabricatorRepositoryController.php index ba5bfacc23..6ba863f39d 100644 --- a/src/applications/repository/controller/PhabricatorRepositoryController.php +++ b/src/applications/repository/controller/PhabricatorRepositoryController.php @@ -21,46 +21,4 @@ abstract class PhabricatorRepositoryController extends PhabricatorController { return $response->setContent($page->render()); } - private function isPullDaemonRunning() { - $daemons = id(new PhabricatorDaemonLogQuery()) - ->setViewer(PhabricatorUser::getOmnipotentUser()) - ->withStatus(PhabricatorDaemonLogQuery::STATUS_ALIVE) - ->withDaemonClasses(array('PhabricatorRepositoryPullLocalDaemon')) - ->setLimit(1) - ->execute(); - - return (bool)$daemons; - } - - protected function renderDaemonNotice() { - $documentation = phutil_tag( - 'a', - array( - 'href' => PhabricatorEnv::getDoclink( - 'article/Diffusion_User_Guide.html'), - ), - 'Diffusion User Guide'); - - $common = hsprintf( - "Without this daemon, Phabricator will not be able to import or update ". - "repositories. For instructions on starting the daemon, see %s.", - phutil_tag('strong', array(), $documentation)); - - $daemon_running = $this->isPullDaemonRunning(); - if ($daemon_running) { - return null; - } - $title = "Repository Daemon Not Running"; - $message = hsprintf( - "
The repository daemon is not running. %s
", - $common); - - $view = new AphrontErrorView(); - $view->setSeverity(AphrontErrorView::SEVERITY_WARNING); - $view->setTitle($title); - $view->appendChild($message); - - return $view; - } - } diff --git a/src/applications/repository/controller/PhabricatorRepositoryListController.php b/src/applications/repository/controller/PhabricatorRepositoryListController.php index b7c839e427..0c4ea1b1fd 100644 --- a/src/applications/repository/controller/PhabricatorRepositoryListController.php +++ b/src/applications/repository/controller/PhabricatorRepositoryListController.php @@ -143,7 +143,6 @@ final class PhabricatorRepositoryListController return $this->buildStandardPageResponse( array( - $this->renderDaemonNotice(), $panel, $project_panel, ),