Skip to content

Commit

Permalink
(Database) Remove some unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
inactive123 committed May 25, 2015
1 parent 0242b38 commit 1a85dfe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions database_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,6 @@ database_info_list_t *database_info_list_new(const char *rdb_path, const char *q
int ret = 0;
libretrodb_t db;
libretrodb_cursor_t cur;
struct rmsgpack_dom_value item;
size_t j;
unsigned k = 0;
database_info_t *database_info = NULL;
database_info_list_t *database_info_list = NULL;
Expand Down
2 changes: 1 addition & 1 deletion menu/menu_displaylist.c
Original file line number Diff line number Diff line change
Expand Up @@ -1157,7 +1157,7 @@ static int menu_database_parse_query(file_list_t *list, const char *path,
const char *query)
{
#ifdef HAVE_LIBRETRODB
int ret = 0, i;
int i;
database_info_list_t *db_list = database_info_list_new(path, query);

if (!db_list)
Expand Down
4 changes: 2 additions & 2 deletions tasks/task_database.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ static int zlib_compare_crc32(const char *name, const char *valid_exts,
uint32_t crc32, void *userdata)
{
database_state_handle_t *db_state = (database_state_handle_t*)userdata;

(void)db_state;

RARCH_LOG("CRC32: 0x%x\n", crc32);

Expand Down Expand Up @@ -146,8 +148,6 @@ static int database_info_iterate_crc_lookup(
{
char entry_state_crc[PATH_MAX_LENGTH];
/* Check if the CRC matches with the current entry. */

unsigned int entry_crc = (unsigned int)atol(db_info_entry->crc32);
snprintf(entry_state_crc, sizeof(entry_state_crc), "%x", db_state->crc);

#if 0
Expand Down

0 comments on commit 1a85dfe

Please sign in to comment.