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:37:50 +0400
committerraimund-schluessler <raimund.schluessler@googlemail.com>2014-07-30 23:37:50 +0400
commit0cfd8fd789b151e3b063d7171981a9bc014aec38 (patch)
tree0b067ff6ced563b9d5e0eec040c07371a9c05a4b /lib
parent83933914bc39a921d39e6a893aea4be70fcf3cbe (diff)
Remove unused code 2nd try
Diffstat (limited to 'lib')
-rw-r--r--lib/controller/taskscontroller.php3
-rw-r--r--lib/helper.php2
2 files changed, 1 insertions, 4 deletions
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<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);
+ 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;