APIv4 - Remove unused event
authorColeman Watts <coleman@civicrm.org>
Thu, 7 May 2020 14:14:32 +0000 (10:14 -0400)
committerColeman Watts <coleman@civicrm.org>
Fri, 15 May 2020 17:00:28 +0000 (13:00 -0400)
This event was defined but never invoked.

Civi/Api4/Event/Events.php
Civi/Api4/Event/GetSpecEvent.php [deleted file]

index 4264ef2ff5fe8af53934fe48724202750c4a283b..b42618db698710f9052aeea79bef01079de4deb4 100644 (file)
@@ -23,14 +23,6 @@ namespace Civi\Api4\Event;
 
 class Events {
 
-  /**
-   * Prepare the specification for a request. Fired from within a request to
-   * get fields.
-   *
-   * @see \Civi\Api4\Event\GetSpecEvent
-   */
-  const GET_SPEC = 'civi.api.get_spec';
-
   /**
    * Build the database schema, allow adding of custom joins and tables.
    */
diff --git a/Civi/Api4/Event/GetSpecEvent.php b/Civi/Api4/Event/GetSpecEvent.php
deleted file mode 100644 (file)
index 16e1e84..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-<?php
-
-/*
- +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC. All rights reserved.                        |
- |                                                                    |
- | This work is published under the GNU AGPLv3 license with some      |
- | permitted exceptions and without any warranty. For full license    |
- | and copyright information, see https://civicrm.org/licensing       |
- +--------------------------------------------------------------------+
- */
-
-/**
- *
- * @package CRM
- * @copyright CiviCRM LLC https://civicrm.org/licensing
- * $Id$
- *
- */
-
-
-namespace Civi\Api4\Event;
-
-use Civi\Api4\Generic\AbstractAction;
-use Symfony\Component\EventDispatcher\Event as BaseEvent;
-
-class GetSpecEvent extends BaseEvent {
-  /**
-   * @var \Civi\Api4\Generic\AbstractAction
-   */
-  protected $request;
-
-  /**
-   * @param \Civi\Api4\Generic\AbstractAction $request
-   */
-  public function __construct(AbstractAction $request) {
-    $this->request = $request;
-  }
-
-  /**
-   * @return \Civi\Api4\Generic\AbstractAction
-   */
-  public function getRequest() {
-    return $this->request;
-  }
-
-  /**
-   * @param $request
-   */
-  public function setRequest(AbstractAction $request) {
-    $this->request = $request;
-  }
-
-}