Remove unused code

This commit is contained in:
raimund-schluessler 2014-07-30 21:24:41 +02:00
parent 55d2851afa
commit b52e8e5e4c
2 changed files with 0 additions and 3 deletions

View file

@ -201,7 +201,6 @@ class TasksController extends Controller {
$start = $this->params('start');
$response = new JSONResponse();
$userId = $this->api->getUserId();
$calendars = \OC_Calendar_Calendar::allCalendars($userId, true);
$user_timezone = \OC_Calendar_App::getTimezone();
$request = array(
'summary' => $taskName,
@ -234,7 +233,6 @@ class TasksController extends Controller {
public function deleteTask(){
$response = new JSONResponse();
$taskId = $this->params('taskID');
$task = \OC_Calendar_App::getEventObject($taskId);
\OC_Calendar_Object::delete($taskId);
return $response;
}

View file

@ -95,7 +95,6 @@ Class helper {
} else{
throw new \Exception('Reminder duration related to not available date.');
}
$result = preg_match('/^(?P<plusminus>\+|-)?P((?P<week>\d+)W)?((?P<day>\d+)D)?(T((?P<hour>\d+)H)?((?P<minute>\d+)M)?((?P<second>\d+)S)?)?$/', $reminder->TRIGGER, $matches);
$invert = false;
if ($matches['plusminus']==='-') {
$invert = true;