From cc4ebe0e778298df981b38c853e58602946c98b6 Mon Sep 17 00:00:00 2001 From: Fredrik Meringdal Date: Wed, 3 Feb 2021 22:48:47 +0100 Subject: refactoring --- src/iter/iter_v2.rs | 165 -------------------------------------- src/iter/mod.rs | 136 +------------------------------- src/rrule.rs | 2 - src/rrule_iter.rs | 219 +++++++++++++++++++++++++++++++++++---------------- src/rruleset_iter.rs | 2 +- 5 files changed, 152 insertions(+), 372 deletions(-) delete mode 100644 src/iter/iter_v2.rs (limited to 'src') diff --git a/src/iter/iter_v2.rs b/src/iter/iter_v2.rs deleted file mode 100644 index d2054f9..0000000 --- a/src/iter/iter_v2.rs +++ /dev/null @@ -1,165 +0,0 @@ -use std::cmp::{max, min}; - -use crate::{datetime::Time, Frequenzy}; -use chrono::prelude::*; -use chrono_tz::Tz; - -use super::{build_poslist, from_ordinal, increment_counter_date, remove_filtered_days, IterInfo}; - -pub struct RRuleIter { - pub counter_date: DateTime, - pub ii: IterInfo, - pub timeset: Vec