mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-27 19:42:11 +10:00
Remove an unused function
This commit is contained in:
parent
19dd70c433
commit
b43a97f0db
1 changed files with 0 additions and 10 deletions
|
|
@ -28,16 +28,6 @@ const timeSlotsContain = (timeSlots, date) => {
|
|||
return timeSlots.findIndex(slot => timeSlotEqualsDay(slot, date)) > -1;
|
||||
};
|
||||
|
||||
const lastBlockedBetweenExclusive = (timeSlots, startDate, endDate) => {
|
||||
if (startDate.isSame(endDate, 'date')) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return timeSlotsContain(timeSlots, endDate)
|
||||
? lastBlockedBetweenExclusive(timeSlots, startDate, moment(endDate).subtract(1, 'days'))
|
||||
: endDate;
|
||||
};
|
||||
|
||||
/**
|
||||
* Find first blocked date between two dates.
|
||||
* If none is found, null is returned.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue