From 7d99e8267ae150c1d9699386f6467d24ac90dcfc Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 25 Dec 2016 01:30:20 +0000 Subject: [PATCH] Removed check from DURATION in CalendarEvent as it broke it. --- source/objects/calendarevent/CalendarEvent.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/source/objects/calendarevent/CalendarEvent.cpp b/source/objects/calendarevent/CalendarEvent.cpp index b3f658d..fc87973 100644 --- a/source/objects/calendarevent/CalendarEvent.cpp +++ b/source/objects/calendarevent/CalendarEvent.cpp @@ -156,7 +156,7 @@ CalendarObjectValidResult CalendarEventObject::ValidObject(){ } // Check if the VEVENT is valid. - + if (ValidBegin == true && ValidEnd == true && ValidDateTimeStamp == true && @@ -816,14 +816,6 @@ void CalendarEventObject::ProcessData(){ DataReceived = ProcessTextVectors(&ObjectName, &ObjectData, false, "DURATION"); if (DataReceived.begin() != DataReceived.end()){ - - try { - DurationDataTokens = DataReceived.begin()->first.substr(9); - } - - catch(const out_of_range &oor){ - // Do nothing as there is no data. - } DurationData = DataReceived.begin()->second; -- 2.39.5