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);