mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 10:07:19 +02:00
TDB2: Removed unused ::has methods
This commit is contained in:
parent
e3ad04aa37
commit
fa920f02aa
2 changed files with 0 additions and 23 deletions
21
src/TDB2.cpp
21
src/TDB2.cpp
|
@ -149,19 +149,6 @@ bool TF2::get (const std::string& uuid, Task& task)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
bool TF2::has (const std::string& uuid)
|
|
||||||
{
|
|
||||||
if (! _loaded_tasks)
|
|
||||||
load_tasks ();
|
|
||||||
|
|
||||||
for (auto& i : _tasks)
|
|
||||||
if (i.get ("uuid") == uuid)
|
|
||||||
return true;
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
void TF2::add_task (Task& task)
|
void TF2::add_task (Task& task)
|
||||||
{
|
{
|
||||||
|
@ -1363,14 +1350,6 @@ bool TDB2::get (const std::string& uuid, Task& task)
|
||||||
completed.get (uuid, task);
|
completed.get (uuid, task);
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Locate task by UUID, wherever it is.
|
|
||||||
bool TDB2::has (const std::string& uuid)
|
|
||||||
{
|
|
||||||
return pending.has (uuid) ||
|
|
||||||
completed.has (uuid);
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
const std::vector <Task> TDB2::siblings (Task& task)
|
const std::vector <Task> TDB2::siblings (Task& task)
|
||||||
{
|
{
|
||||||
|
|
|
@ -50,7 +50,6 @@ public:
|
||||||
|
|
||||||
bool get (int, Task&);
|
bool get (int, Task&);
|
||||||
bool get (const std::string&, Task&);
|
bool get (const std::string&, Task&);
|
||||||
bool has (const std::string&);
|
|
||||||
|
|
||||||
void add_task (Task&);
|
void add_task (Task&);
|
||||||
bool modify_task (const Task&);
|
bool modify_task (const Task&);
|
||||||
|
@ -122,7 +121,6 @@ public:
|
||||||
const std::vector <Task> all_tasks ();
|
const std::vector <Task> all_tasks ();
|
||||||
bool get (int, Task&);
|
bool get (int, Task&);
|
||||||
bool get (const std::string&, Task&);
|
bool get (const std::string&, Task&);
|
||||||
bool has (const std::string&);
|
|
||||||
const std::vector <Task> siblings (Task&);
|
const std::vector <Task> siblings (Task&);
|
||||||
const std::vector <Task> children (Task&);
|
const std::vector <Task> children (Task&);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue