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:
Wilhelm Schuermann 2015-11-10 16:32:52 +01:00
parent 6dc30a9a1a
commit 5ac1b1c6dd

View file

@ -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.
}