(fix) removed old code

pull/207/head
Ludovic Marcotte 2016-04-23 14:11:38 -04:00
parent b0ab9ab1b8
commit 0f86d78f22
1 changed files with 0 additions and 69 deletions

View File

@ -592,75 +592,6 @@
return [self responseWithStatus: 200 andJSONRepresentation: data];
}
// - (BOOL) shouldTakeValuesFromRequest: (WORequest *) request
// inContext: (WOContext*) context
// {
// NSString *actionName;
// actionName = [[request requestHandlerPath] lastPathComponent];
// return ([[self clientObject] conformsToProtocol: @protocol (SOGoComponentOccurence)]
// && [actionName hasPrefix: @"save"]);
// }
// - (void) takeValuesFromRequest: (WORequest *) _rq
// inContext: (WOContext *) _ctx
// {
// SOGoUserDefaults *ud;
// iCalTimeZone *tz;
// iCalToDo *todo;
// todo = [self todo];
// [super takeValuesFromRequest: _rq inContext: _ctx];
// if (hasStartDate)
// [todo setStartDate: taskStartDate];
// else
// {
// [todo setStartDate: nil];
// [todo removeAllAlarms];
// }
// if (hasDueDate)
// [todo setDue: taskDueDate];
// else
// [todo setDue: nil];
// if ([status isEqualToString: @"COMPLETED"])
// [todo setCompleted: statusDate];
// else
// [todo setCompleted: nil];
// if ([status length] > 0)
// {
// [todo setStatus: status];
// [todo setPercentComplete: statusPercent];
// }
// else
// {
// [todo setStatus: @""];
// [todo setPercentComplete: @""];
// }
// if ([[self clientObject] isNew])
// {
// ud = [[context activeUser] userDefaults];
// tz = [iCalTimeZone timeZoneForName: [ud timeZoneName]];
// if (hasStartDate || hasDueDate)
// {
// [[todo parent] addTimeZone: tz];
// }
// if (hasStartDate)
// [(iCalDateTime *)[todo uniqueChildWithTag: @"dtstart"] setTimeZone: tz];
// if (hasDueDate)
// [(iCalDateTime *)[todo uniqueChildWithTag: @"due"] setTimeZone: tz];
// }
// }
- (id) changeStatusAction
{
NSString *newStatus;