From 3453ef835800cabfcae652cb99c069dedcea7ba9 Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 25 Sep 2017 11:07:20 -0700 Subject: [PATCH] Remove "async lint" from `arc lint` Summary: Ref T12996. This was a very old FB-specific feature that caused some kind of server-side lint thing to run. You can/should do this now with Harbormaster instead. Nothing else ever used it and it has no role in the upstream. Test Plan: Grepped for `asynclint`, created this revision. Reviewers: amckinley Reviewed By: amckinley Maniphest Tasks: T12996 Differential Revision: https://secure.phabricator.com/D18641 --- src/lint/engine/ArcanistLintEngine.php | 10 ---------- src/workflow/ArcanistLintWorkflow.php | 7 ------- 2 files changed, 17 deletions(-) diff --git a/src/lint/engine/ArcanistLintEngine.php b/src/lint/engine/ArcanistLintEngine.php index ee80e6c2..f737fcd4 100644 --- a/src/lint/engine/ArcanistLintEngine.php +++ b/src/lint/engine/ArcanistLintEngine.php @@ -56,7 +56,6 @@ abstract class ArcanistLintEngine extends Phobject { private $changedLines = array(); - private $enableAsyncLint = false; private $configurationManager; private $linterResources = array(); @@ -110,15 +109,6 @@ abstract class ArcanistLintEngine extends Phobject { return $this; } - final public function setEnableAsyncLint($enable_async_lint) { - $this->enableAsyncLint = $enable_async_lint; - return $this; - } - - final public function getEnableAsyncLint() { - return $this->enableAsyncLint; - } - final public function loadData($path) { if (!isset($this->fileData[$path])) { $disk_path = $this->getFilePathOnDisk($path); diff --git a/src/workflow/ArcanistLintWorkflow.php b/src/workflow/ArcanistLintWorkflow.php index de215aad..249ffc82 100644 --- a/src/workflow/ArcanistLintWorkflow.php +++ b/src/workflow/ArcanistLintWorkflow.php @@ -286,13 +286,6 @@ EOTEXT } } - // Enable possible async linting only for 'arc diff' not 'arc lint' - if ($this->getParentWorkflow()) { - $engine->setEnableAsyncLint(true); - } else { - $engine->setEnableAsyncLint(false); - } - if ($this->getArgument('only-new')) { $conduit = $this->getConduit(); $api = $this->getRepositoryAPI();