Skip to content

Commit

Permalink
Merge pull request #22332 from braders/remove-getGrantStatusOptGroup
Browse files Browse the repository at this point in the history
Remove unused method getGrantStatusOptGroup
  • Loading branch information
colemanw authored Dec 28, 2021
2 parents 874c094 + 6144fdd commit 50f749d
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions CRM/Grant/BAO/Grant.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,30 +59,6 @@ public static function getGrantSummary($admin = FALSE) {
return $summary;
}

/**
* Get events Summary.
*
*
* @return array
* Array of event summary values
*
* @throws CRM_Core_Exception
*/
public static function getGrantStatusOptGroup() {

$params = [];
$params['name'] = CRM_Grant_BAO_Grant::$statusGroupName;

$defaults = [];

$og = CRM_Core_BAO_OptionGroup::retrieve($params, $defaults);
if (!$og) {
throw new CRM_Core_Exception('No option group for grant statuses - database discrepancy! Make sure you loaded civicrm_data.mysql');
}

return $og;
}

/**
* Fetch object based on array of properties.
*
Expand Down

0 comments on commit 50f749d

Please sign in to comment.