context: Remove duplicated hash table loop

It loops twice and adds the same values, which is unnecessary.
This commit is contained in:
Georges Basile Stavracas Neto
2024-10-01 16:59:17 -03:00
committed by Georges Basile Stavracas Neto
parent 1561e0f39c
commit 0785f890af

View File

@@ -1034,10 +1034,6 @@ flatpak_context_merge (FlatpakContext *context,
while (g_hash_table_iter_next (&iter, &key, &value))
g_hash_table_insert (context->system_bus_policy, g_strdup (key), value);
g_hash_table_iter_init (&iter, other->system_bus_policy);
while (g_hash_table_iter_next (&iter, &key, &value))
g_hash_table_insert (context->system_bus_policy, g_strdup (key), value);
g_hash_table_iter_init (&iter, other->generic_policy);
while (g_hash_table_iter_next (&iter, &key, &value))
{