Remove an unused function

This commit is contained in:
Hannu Lyytikainen 2018-08-10 09:34:11 +03:00
parent 19dd70c433
commit b43a97f0db

View file

@ -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.