diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/controller/taskscontroller.php | 2 | ||||
-rw-r--r-- | lib/helper.php | 1 |
2 files changed, 0 insertions, 3 deletions
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<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; |