]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Remove deprecated "base" classes
authorJoshua Spence <josh@joshuaspence.com>
Sat, 16 May 2015 00:15:39 +0000 (10:15 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Sat, 16 May 2015 00:16:48 +0000 (10:16 +1000)
Summary: Ref T5655. After D9983, `ArcanistBaseWorkflow` and `ArcanistBaseUnitTestEngine` are deprecated.

Test Plan: Wait a sufficient amount of time before landing this.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin

Maniphest Tasks: T5655

Differential Revision: https://secure.phabricator.com/D10004

src/__phutil_library_map__.php
src/unit/engine/ArcanistBaseUnitTestEngine.php [deleted file]
src/unit/engine/ArcanistUnitTestEngine.php
src/workflow/ArcanistBaseWorkflow.php [deleted file]
src/workflow/ArcanistWorkflow.php

index 40f0f1fb11eaaa88d018ee6f8e16fcd6f5bd4826..4c9ef369ee46deba669a6e227ad7703f60a0257e 100644 (file)
@@ -15,8 +15,6 @@ phutil_register_library_map(array(
     'ArcanistBackoutWorkflow' => 'workflow/ArcanistBackoutWorkflow.php',
     'ArcanistBaseCommitParser' => 'parser/ArcanistBaseCommitParser.php',
     'ArcanistBaseCommitParserTestCase' => 'parser/__tests__/ArcanistBaseCommitParserTestCase.php',
-    'ArcanistBaseUnitTestEngine' => 'unit/engine/ArcanistBaseUnitTestEngine.php',
-    'ArcanistBaseWorkflow' => 'workflow/ArcanistBaseWorkflow.php',
     'ArcanistBaseXHPASTLinter' => 'lint/linter/ArcanistBaseXHPASTLinter.php',
     'ArcanistBookmarkWorkflow' => 'workflow/ArcanistBookmarkWorkflow.php',
     'ArcanistBranchWorkflow' => 'workflow/ArcanistBranchWorkflow.php',
@@ -220,8 +218,6 @@ phutil_register_library_map(array(
     'ArcanistAnoidWorkflow' => 'ArcanistWorkflow',
     'ArcanistBackoutWorkflow' => 'ArcanistWorkflow',
     'ArcanistBaseCommitParserTestCase' => 'ArcanistTestCase',
-    'ArcanistBaseUnitTestEngine' => 'ArcanistUnitTestEngine',
-    'ArcanistBaseWorkflow' => 'ArcanistWorkflow',
     'ArcanistBaseXHPASTLinter' => 'ArcanistFutureLinter',
     'ArcanistBookmarkWorkflow' => 'ArcanistFeatureWorkflow',
     'ArcanistBranchWorkflow' => 'ArcanistFeatureWorkflow',
diff --git a/src/unit/engine/ArcanistBaseUnitTestEngine.php b/src/unit/engine/ArcanistBaseUnitTestEngine.php
deleted file mode 100644 (file)
index 4db663e..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-
-/**
- * NOTE: Do not extend from this class, extend from
- * @{class:ArcanistUnitTestEngine} instead.
- */
-abstract class ArcanistBaseUnitTestEngine extends ArcanistUnitTestEngine {}
index 8dd6e672965ea2133070beb9b151449fad9d0823..5116b9647ee34d0682b6c7b6d48633acc33f7452 100644 (file)
@@ -51,13 +51,6 @@ abstract class ArcanistUnitTestEngine {
   final public function setWorkingCopy(
     ArcanistWorkingCopyIdentity $working_copy) {
 
-    // TODO: Remove this once ArcanistBaseUnitTestEngine is gone.
-    if ($this instanceof ArcanistBaseUnitTestEngine) {
-      phutil_deprecated(
-        'ArcanistBaseUnitTestEngine',
-        pht('You should extend from `%s` instead.', __CLASS__));
-    }
-
     $this->workingCopy = $working_copy;
     return $this;
   }
diff --git a/src/workflow/ArcanistBaseWorkflow.php b/src/workflow/ArcanistBaseWorkflow.php
deleted file mode 100644 (file)
index bb3c874..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-
-/**
- * NOTE: Do not extend from this class, extend from @{class:ArcanistWorkflow}
- * instead.
- */
-abstract class ArcanistBaseWorkflow extends ArcanistWorkflow {}
index 700487e5881696338ac5f7c15a882c5b422e9d94..006d75c13fae160eb6843b26a80ea9e617782545 100644 (file)
@@ -84,15 +84,6 @@ abstract class ArcanistWorkflow extends Phobject {
    * whether the command succeeded or failed.
    */
   public function finalize() {
-    // TODO: Remove this once ArcanistBaseWorkflow is gone.
-    if ($this instanceof ArcanistBaseWorkflow) {
-      phutil_deprecated(
-        'ArcanistBaseWorkflow',
-        pht(
-          'You should extend from `%s` instead.',
-          __CLASS__));
-    }
-
     $this->finalizeWorkingCopy();
   }