removed now-unused code

This commit is contained in:
naomi 2022-04-22 09:36:39 +01:00
parent 86c0fb1f65
commit aa5dd4c48b

View File

@ -68,20 +68,6 @@ function opencase_cases_theme() {
];
}
/**
* @return Drupal\opencase_cases\entity\OCCaseFee[]
*/
function opencase_cases_get_case_fees(Drupal\opencase_cases\entity\OCCase $case): array {
$query = \Drupal::entityQuery('oc_case_fee')
->condition('oc_case.target_id', $case->id());
$case_fee_ids = $query->execute();
$case_fees = [];
foreach($case_fee_ids as $id) {
$case_fees[] = Drupal\opencase_cases\entity\OCCaseFee::load($id);
}
return $case_fees;
}
/**
* @return Drupal\opencase_cases\entity\OCActivity[]
*/