From: colemanw Date: Tue, 17 Oct 2023 00:43:14 +0000 (-0400) Subject: ManagedEntities - Remove unused function X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ec739ca91bffa7c8d3a2f9029a1933d5cdd29d14;p=civicrm-core.git ManagedEntities - Remove unused function --- diff --git a/CRM/Core/ManagedEntities.php b/CRM/Core/ManagedEntities.php index 27353fd21b..efdb6f05d2 100644 --- a/CRM/Core/ManagedEntities.php +++ b/CRM/Core/ManagedEntities.php @@ -435,30 +435,6 @@ class CRM_Core_ManagedEntities { return $result; } - /** - * @param array $moduleIndex - * @param array $declarations - * - * @return array - * indexed by module,name - */ - protected function createDeclarationIndex($moduleIndex, $declarations) { - $result = []; - if (!isset($moduleIndex[TRUE])) { - return $result; - } - foreach ($moduleIndex[TRUE] as $moduleName => $module) { - if ($module->is_active) { - // need an empty array() for all active modules, even if there are no current $declarations - $result[$moduleName] = []; - } - } - foreach ($declarations as $declaration) { - $result[$declaration['module']][$declaration['name']] = $declaration; - } - return $result; - } - /** * @param array $declarations *