diff options
author | raimund-schluessler <raimund.schluessler@googlemail.com> | 2014-07-30 23:24:41 +0400 |
---|---|---|
committer | raimund-schluessler <raimund.schluessler@googlemail.com> | 2014-07-30 23:24:41 +0400 |
commit | b52e8e5e4cc68054b5b317304cb5d6d0b1f4d5d2 (patch) | |
tree | 1cc5ff5f4320f95345a7b4879d661bac96d6f271 | |
parent | 55d2851afa0e661e9b1cb03dfd12dcfd23fe343c (diff) |
Remove unused code
-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; |