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:
@@ -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.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user