From ec739ca91bffa7c8d3a2f9029a1933d5cdd29d14 Mon Sep 17 00:00:00 2001 From: colemanw Date: Mon, 16 Oct 2023 20:43:14 -0400 Subject: [PATCH] ManagedEntities - Remove unused function --- CRM/Core/ManagedEntities.php | 24 ------------------------ 1 file changed, 24 deletions(-) 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 * -- 2.25.1