Remove duplicate function menu_database_populate_list

This commit is contained in:
Twinaphex 2015-01-24 08:37:03 +01:00
parent a7a5cb6a94
commit f7e45f7753
3 changed files with 1 additions and 23 deletions

View File

@ -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;
}

View File

@ -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);

View File

@ -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);