From e5142dfd970ee831a66504a4e252651c019c4aea Mon Sep 17 00:00:00 2001 From: Christopher Lam Date: Fri, 26 Jun 2026 07:26:24 +0800 Subject: [PATCH] Revert "[qofid.cpp] for Split and Trans reserve QofInstance* map" This reverts commit 00803ba018527f30ea3239fd60a8675009a878ef. --- libgnucash/engine/qofid.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/libgnucash/engine/qofid.cpp b/libgnucash/engine/qofid.cpp index 62d4ec46b0..cde7fd524e 100644 --- a/libgnucash/engine/qofid.cpp +++ b/libgnucash/engine/qofid.cpp @@ -47,14 +47,7 @@ struct QofCollection_s QofCollection_s (QofIdType type) : e_type{static_cast(CACHE_INSERT(type))} , is_dirty{FALSE} - , data{NULL} - { - if (!g_strcmp0 (e_type, "Split")) - guid_entity_map.reserve (50000); - else if (!g_strcmp0 (e_type, "Trans")) - guid_entity_map.reserve (10000); - } - + , data{NULL} {} ~QofCollection_s () { CACHE_REMOVE (e_type);