diff --git a/src/components/FieldDateRangeInput/DateRangeInput.helpers.js b/src/components/FieldDateRangeInput/DateRangeInput.helpers.js index 8d2d5f13..413ed0fd 100644 --- a/src/components/FieldDateRangeInput/DateRangeInput.helpers.js +++ b/src/components/FieldDateRangeInput/DateRangeInput.helpers.js @@ -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.