mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Context: GC now only called when the commands request it
This commit is contained in:
parent
0c85725a4c
commit
a604e14ea9
2 changed files with 3 additions and 7 deletions
|
@ -59,9 +59,6 @@ int CmdProjects::execute (std::string& output)
|
|||
{
|
||||
int rc = 0;
|
||||
|
||||
// Enforce the garbage collector to show correct task counts
|
||||
context.tdb2.gc ();
|
||||
|
||||
// Get all the tasks.
|
||||
handleRecurrence ();
|
||||
auto tasks = context.tdb2.pending.get_tasks ();
|
||||
|
@ -74,7 +71,6 @@ int CmdProjects::execute (std::string& output)
|
|||
Filter filter;
|
||||
std::vector <Task> filtered;
|
||||
filter.subset (tasks, filtered);
|
||||
|
||||
int quantity = filtered.size ();
|
||||
|
||||
std::stringstream out;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue