Refactor away menu_list_populate_generic

This commit is contained in:
twinaphex 2015-05-18 23:18:50 +02:00
parent c95fd28e59
commit 9820b39653
3 changed files with 3 additions and 13 deletions

View File

@ -2071,7 +2071,9 @@ int menu_displaylist_push_list(menu_displaylist_info_t *info, unsigned type)
driver_t *driver = driver_get_ptr(); driver_t *driver = driver_get_ptr();
const ui_companion_driver_t *ui = ui_companion_get_ptr(); const ui_companion_driver_t *ui = ui_companion_get_ptr();
menu_list_populate_generic(info, need_refresh); if (need_refresh)
menu_list_refresh(info->list);
menu_driver_populate_entries(info->path, info->label, info->type);
if (ui && driver) if (ui && driver)
ui->notify_list_loaded(driver->ui_companion_data, ui->notify_list_loaded(driver->ui_companion_data,

View File

@ -367,12 +367,3 @@ void menu_list_get_alt_at_offset(const file_list_t *list, size_t idx,
{ {
file_list_get_alt_at_offset(list, idx, alt); file_list_get_alt_at_offset(list, idx, alt);
} }
int menu_list_populate_generic(menu_displaylist_info_t *info, bool need_refresh)
{
if (need_refresh)
menu_list_refresh(info->list);
menu_driver_populate_entries(info->path, info->label, info->type);
return 0;
}

View File

@ -107,9 +107,6 @@ void menu_list_set_alt_at_offset(file_list_t *list, size_t idx,
void menu_list_refresh(file_list_t *list); void menu_list_refresh(file_list_t *list);
int menu_list_populate_generic(menu_displaylist_info_t *info,
bool need_refresh);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif