diff options
author | Nora <nora.widdecke@tu-bs.de> | 2019-03-22 18:29:07 +0100 |
---|---|---|
committer | Nora <nora.widdecke@tu-bs.de> | 2019-03-22 18:29:07 +0100 |
commit | 18dd1415c10a250d4d2527ad6b23243f32a02248 (patch) | |
tree | 18faf8f8888ae581cca782417b23759a64a3e419 | |
parent | 8275cca7f0376cd1db643b606442600b72363b9e (diff) |
icalvcalendar: remove with_internal_timestamp function
-rw-r--r-- | src/icalwrap/icalvcalendar.rs | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/icalwrap/icalvcalendar.rs b/src/icalwrap/icalvcalendar.rs index 73290a6..bc4066d 100644 --- a/src/icalwrap/icalvcalendar.rs +++ b/src/icalwrap/icalvcalendar.rs @@ -59,10 +59,10 @@ impl IcalVCalendar { } } - pub fn with_internal_timestamp(mut self, datetime: &IcalTime) -> IcalVCalendar { - self.instance_timestamp = Some(datetime.clone()); - self - } + //pub fn with_internal_timestamp(mut self, datetime: &IcalTime) -> IcalVCalendar { + //self.instance_timestamp = Some(datetime.clone()); + //self + //} pub fn with_path(mut self, path: &Path) -> IcalVCalendar { self.path = Some(path.to_path_buf()); @@ -548,16 +548,16 @@ mod tests { assert_eq!("Europe/Berlin", event.get_start().unwrap().get_timezone().unwrap().get_name()); } - #[test] - fn test_with_internal_timestamp() { - let cal = IcalVCalendar::from_str(testdata::TEST_EVENT_MULTIDAY, None).unwrap(); - - let timestamp = IcalTime::floating_ymd(2018, 1, 1).and_hms(11, 30, 20); - let new_cal = cal.with_internal_timestamp(×tamp); - - let event = new_cal.get_principal_khevent(); - assert_eq!(timestamp, event.get_start().unwrap()); - } + //#[test] + //fn test_with_internal_timestamp() { + //let cal = IcalVCalendar::from_str(testdata::TEST_EVENT_MULTIDAY, None).unwrap(); +// + //let timestamp = IcalTime::floating_ymd(2018, 1, 1).and_hms(11, 30, 20); + //let new_cal = cal.with_internal_timestamp(×tamp); +// + //let event = new_cal.get_principal_event(); + //assert_eq!(timestamp, event.get_dtstart().unwrap()); + //} #[test] fn with_uid_test() { |