Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/tasks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorraimund-schluessler <raimund.schluessler@googlemail.com>2014-07-30 23:24:41 +0400
committerraimund-schluessler <raimund.schluessler@googlemail.com>2014-07-30 23:24:41 +0400
commitb52e8e5e4cc68054b5b317304cb5d6d0b1f4d5d2 (patch)
tree1cc5ff5f4320f95345a7b4879d661bac96d6f271 /lib
parent55d2851afa0e661e9b1cb03dfd12dcfd23fe343c (diff)
Remove unused code
Diffstat (limited to 'lib')
-rw-r--r--lib/controller/taskscontroller.php2
-rw-r--r--lib/helper.php1
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;