From 5ac1b1c6dd67e1b5f25356e4f4394b55902b3a3d Mon Sep 17 00:00:00 2001 From: Wilhelm Schuermann Date: Tue, 10 Nov 2015 16:32:52 +0100 Subject: [PATCH] TDB2: Remove unnecessary code - ID assignment is now handled in TF2::load_task(), the removed code duplicated that effort. Barely noticeable performance impact. --- src/TDB2.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/TDB2.cpp b/src/TDB2.cpp index f93f46d16..84be333d7 100644 --- a/src/TDB2.cpp +++ b/src/TDB2.cpp @@ -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. }