mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-12 05:40:36 +00:00
Remove duplicate function menu_database_populate_list
This commit is contained in:
parent
a7a5cb6a94
commit
f7e45f7753
@ -86,23 +86,3 @@ int menu_database_populate_query(file_list_t *list, const char *path,
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int menu_database_populate_list(file_list_t *list, const char *path)
|
||||
{
|
||||
#ifdef HAVE_LIBRETRODB
|
||||
libretrodb_t db;
|
||||
libretrodb_cursor_t cur;
|
||||
|
||||
if ((libretrodb_open(path, &db)) != 0)
|
||||
return -1;
|
||||
if ((menu_database_open_cursor(&db, &cur, NULL) != 0))
|
||||
return -1;
|
||||
if ((menu_database_fetch_from_query(&db, &cur, list)) != 0)
|
||||
return -1;
|
||||
|
||||
libretrodb_cursor_close(&cur);
|
||||
libretrodb_close(&db);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -25,8 +25,6 @@
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
int menu_database_populate_list(file_list_t *list, const char *path);
|
||||
|
||||
int menu_database_populate_query(file_list_t *list, const char *path,
|
||||
const char *query);
|
||||
|
@ -1643,7 +1643,7 @@ static int deferred_push_database_manager_list_deferred(void *data, void *userda
|
||||
|
||||
menu_list_clear(list);
|
||||
|
||||
menu_database_populate_list(list, path);
|
||||
menu_database_populate_query(list, path, NULL);
|
||||
|
||||
menu_list_sort_on_alt(list);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user