summaryrefslogtreecommitdiff
path: root/src/rrulestr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/rrulestr.rs')
-rw-r--r--src/rrulestr.rs15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/rrulestr.rs b/src/rrulestr.rs
index b122350..452f6b0 100644
--- a/src/rrulestr.rs
+++ b/src/rrulestr.rs
@@ -4,7 +4,6 @@ use crate::rrule::RRule;
use crate::datetime::DTime;
use crate::rruleset::RRuleSet;
use chrono::prelude::*;
-use chrono::DateTime;
use chrono_tz::{UTC, Tz};
use once_cell::sync::Lazy;
use regex::Regex;
@@ -33,20 +32,6 @@ fn datestring_to_date(dt: &str, tz: &Tz) -> DTime {
);
}
-struct ParsedDateParam {
- datetime: DateTime<Tz>,
- timezone: Tz,
-}
-
-fn parse_date_param(s: &str, reg: Lazy<Regex>) -> ParsedDateParam {
- let caps = reg.captures(s);
-
- ParsedDateParam {
- datetime: UTC.timestamp_nanos(0),
- timezone: UTC
- }
-}
-
fn parse_dtstart(s: &str) -> Option<Options> {
let caps = DTSTART_RE.captures(s);