From b52e8e5e4cc68054b5b317304cb5d6d0b1f4d5d2 Mon Sep 17 00:00:00 2001 From: raimund-schluessler Date: Wed, 30 Jul 2014 21:24:41 +0200 Subject: Remove unused code --- lib/controller/taskscontroller.php | 2 -- lib/helper.php | 1 - 2 files changed, 3 deletions(-) (limited to 'lib') diff --git a/lib/controller/taskscontroller.php b/lib/controller/taskscontroller.php index 2f9673ab..56279a02 100644 --- a/lib/controller/taskscontroller.php +++ b/lib/controller/taskscontroller.php @@ -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; } diff --git a/lib/helper.php b/lib/helper.php index c7a721fd..66722aa7 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -95,7 +95,6 @@ Class helper { } else{ throw new \Exception('Reminder duration related to not available date.'); } - $result = preg_match('/^(?P\+|-)?P((?P\d+)W)?((?P\d+)D)?(T((?P\d+)H)?((?P\d+)M)?((?P\d+)S)?)?$/', $reminder->TRIGGER, $matches); $invert = false; if ($matches['plusminus']==='-') { $invert = true; -- cgit v1.2.3