* setup.c (load_keys_from_section): Simplify.

This commit is contained in:
Andrew V. Samoilov 2003-01-23 14:26:22 +00:00
parent 90243a202f
commit 6bd6b1deb0
1 changed files with 1 additions and 7 deletions

View File

@ -591,11 +591,7 @@ load_keys_from_section (char *terminal, char *profile_name)
section_name = g_strconcat ("terminal:", terminal, NULL);
profile_keys = profile_init_iterator (section_name, profile_name);
if (!profile_keys){
g_free (section_name);
return;
}
g_free (section_name);
while (profile_keys){
profile_keys = profile_iterator_next (profile_keys, &key, &value);
key_code = lookup_key (key);
@ -605,8 +601,6 @@ load_keys_from_section (char *terminal, char *profile_name)
g_free (valcopy);
}
}
g_free (section_name);
return;
}
void load_key_defs (void)