From 3aa0c514a5708ebc98149c5733e569c8d7393310 Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Sun, 15 Sep 2019 14:09:00 +0200 Subject: [PATCH] fix: keep overlapping periods --- helpers/parse_periods.cc | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/helpers/parse_periods.cc b/helpers/parse_periods.cc index 67c193d..4917019 100644 --- a/helpers/parse_periods.cc +++ b/helpers/parse_periods.cc @@ -60,19 +60,6 @@ helpers::parse_periods(Json::Value periods_json) { continue; } - bool period_overlap = false; - for(int j = 0; j < result->length; j++) - { - if(result->periods[j]->is_in_period(start) || result->periods[j]->is_in_period(end)) - { - period_overlap = true; - break; - } - } - if(period_overlap) - { - continue; - } result->add_period(start, end); }