mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
TDB2: Remove unnecessary code
- ID assignment is now handled in TF2::load_task(), the removed code duplicated that effort. Barely noticeable performance impact.
This commit is contained in:
parent
6dc30a9a1a
commit
5ac1b1c6dd
1 changed files with 0 additions and 4 deletions
|
@ -1271,10 +1271,6 @@ void TDB2::gc ()
|
|||
if (pending_changes)
|
||||
{
|
||||
pending._dirty = true;
|
||||
_id = 1;
|
||||
|
||||
for (auto& task : pending._tasks)
|
||||
task.id = _id++;
|
||||
|
||||
// Note: deliberately no commit.
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue