Skip to content

Commit

Permalink
Remove dead code 😄
Browse files Browse the repository at this point in the history
  • Loading branch information
AugustMiller committed Apr 30, 2023
1 parent 8c71fdc commit cf710d3
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/services/Permissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,25 +256,4 @@ public function revokePermissionsForSubscription(Subscription $subscription, Pla

return true;
}

/**
* Compares a list of UserGroups and returns anything present in both sets.
*
* @param UserGroup[] $a
* @param UserGroup[] $b
* @return UserGroup[] Overlap between the sets
*/
private function _getGroupsOverlap(array $a, array $b): array
{
$overlap = [];
$bIds = ArrayHelper::getColumn($b, 'id');

foreach ($a as $group) {
if (in_array($group->id, $b)) {
$overlap[] = $group;
}
}

return $overlap;
}
}

0 comments on commit cf710d3

Please sign in to comment.