Revert "Cleanups"

This reverts commit f7d47bb956.
This commit is contained in:
radius 2016-02-10 21:50:54 -05:00
parent a6c2e2981d
commit 8a043a9c6d

View File

@ -265,8 +265,8 @@ static core_info_list_t *core_info_list_new(void)
if (!core_info)
goto error;
core_info_list->list = core_info;
core_info_list->count = 0;
core_info_list->list = core_info;
core_info_list->count = contents->size;
for (i = 0; i < contents->size; i++)
{
@ -340,13 +340,6 @@ static core_info_list_t *core_info_list_new(void)
strdup(path_basename(core_info[i].path));
}
for (i = 0; i < contents->size; i++)
{
config_file_t *conf = (config_file_t*)
core_info_list->list[i].config_data;
core_info_list->count += !!conf;
}
core_info_list_resolve_all_extensions(core_info_list);
core_info_list_resolve_all_firmware(core_info_list);