From 0cfd8fd789b151e3b063d7171981a9bc014aec38 Mon Sep 17 00:00:00 2001 From: raimund-schluessler Date: Wed, 30 Jul 2014 21:37:50 +0200 Subject: Remove unused code 2nd try --- lib/controller/taskscontroller.php | 3 --- lib/helper.php | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/controller/taskscontroller.php b/lib/controller/taskscontroller.php index 2f9673ab..37d9e9b5 100644 --- a/lib/controller/taskscontroller.php +++ b/lib/controller/taskscontroller.php @@ -200,8 +200,6 @@ class TasksController extends Controller { $due = $this->params('due'); $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 +232,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..c5577829 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -95,7 +95,7 @@ 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); + 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