mirror of
https://github.com/flatpak/flatpak.git
synced 2026-05-19 14:22:18 -04:00
context: Remove duplicated hash table loop
It loops twice and adds the same values, which is unnecessary.
This commit is contained in:
committed by
Georges Basile Stavracas Neto
parent
1561e0f39c
commit
0785f890af
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user