Remove function after two years of noisy deprecation
authorEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 1 Sep 2022 23:45:32 +0000 (11:45 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 1 Sep 2022 23:45:32 +0000 (11:45 +1200)
CRM/Case/XMLProcessor.php

index 9f9ef223e919dde93635b6ee81c06f5eab48f313..eb7036848b462c70df599ebcff82f67109f70d18 100644 (file)
  */
 class CRM_Case_XMLProcessor {
 
-  /**
-   * FIXME: This does *NOT* belong in a static property, but we're too late in
-   * the 4.5-cycle to do the necessary cleanup.
-   *
-   * Format is [int $id => string $relTypeCname].
-   *
-   * @var array|null
-   */
-  public static $activityTypes = NULL;
-
   /**
    * @param $caseType
    *
@@ -61,22 +51,6 @@ class CRM_Case_XMLProcessor {
     return $caseType;
   }
 
-  /**
-   * @deprecated
-   *
-   * @param bool $indexName
-   * @param bool $all
-   *
-   * @return array
-   */
-  public static function &allActivityTypes($indexName = TRUE, $all = FALSE) {
-    CRM_Core_Error::deprecatedFunctionWarning('CRM_Case_PseudoConstant::caseActivityType');
-    if (self::$activityTypes === NULL) {
-      self::$activityTypes = CRM_Case_PseudoConstant::caseActivityType($indexName, $all);
-    }
-    return self::$activityTypes;
-  }
-
   /**
    * Get all relationship type display labels (not machine names)
    *
@@ -122,7 +96,6 @@ class CRM_Case_XMLProcessor {
    * FIXME: This should not exist
    */
   public static function flushStaticCaches() {
-    self::$activityTypes = NULL;
     unset(Civi::$statics[__CLASS__]['reltypes']);
   }