Skip to content

Commit

Permalink
ManagedEntities - Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
colemanw committed Oct 17, 2023
1 parent a744a82 commit ec739ca
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions CRM/Core/ManagedEntities.php
Original file line number Diff line number Diff line change
Expand Up @@ -435,30 +435,6 @@ protected function createModuleIndex($modules) {
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
*
Expand Down

0 comments on commit ec739ca

Please sign in to comment.