summaryrefslogtreecommitdiff
path: root/src/taskmanager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/taskmanager.cc')
-rw-r--r--src/taskmanager.cc14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/taskmanager.cc b/src/taskmanager.cc
index b1fa34e..f5d9866 100644
--- a/src/taskmanager.cc
+++ b/src/taskmanager.cc
@@ -72,14 +72,6 @@ taskid_t TaskManager::createId() {
return idCount++;
}
-task_t TaskManager::createTask() {
- task_t t;
-
- t.id = createId();
-
- return t;
-}
-
TaskIdList TaskManager::moveTask(taskid_t id, taskid_t to)
throw (std::exception) {
TaskIdList affectedTasks;
@@ -94,7 +86,7 @@ TaskIdList TaskManager::moveTask(taskid_t id, taskid_t to)
return affectedTasks;
}
-TaskIdList TaskManager::deleteTask(taskid_t id)
+TaskIdList TaskManager::removeTask(taskid_t id)
throw (std::exception) {
TaskIdList affectedTasks;
@@ -123,10 +115,12 @@ TaskIdList TaskManager::updateTask(taskid_t id, task_t t)
return affectedTasks;
}
-TaskIdList TaskManager::addTask(task_t t, taskid_t parentid)
+TaskIdList TaskManager::createTask(taskid_t parentid)
throw (std::exception) {
TaskIdList affectedTasks;
+ task_t t;
+ t.title = "";
taskid_t id = createId();
try {