Skip to content

Commit

Permalink
Remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
campbell-m committed Aug 1, 2023
1 parent f68e4ee commit a687bd0
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions web/functions_ical.inc
Original file line number Diff line number Diff line change
Expand Up @@ -363,20 +363,6 @@ function get_create_by(string $organizer)
}


// Returns an MRBS rep_opt string given an array of RFC 5545 days
function get_rep_opt(array $byday_days) : string
{
$rep_opt = '';

foreach (RFC5545::DAYS as $day)
{
$rep_opt .= (in_array($day, $byday_days)) ? '1' : '0';
}

return $rep_opt;
}


// Given an RFC 5545 recurrence rule, returns a RepeatRule object giving the MRBS repeat
// details.
// Returns FALSE on failure with error messages being returned in the array $errors
Expand Down

0 comments on commit a687bd0

Please sign in to comment.