Clean up unused variables
This commit is contained in:
parent
56c8a57e0c
commit
b0f54b896a
|
@ -48,8 +48,12 @@ struct RDIR *retro_opendir(const char *name)
|
|||
{
|
||||
char path_buf[1024];
|
||||
struct RDIR *rdir = (struct RDIR*)calloc(1, sizeof(*rdir));
|
||||
|
||||
if (!rdir)
|
||||
return NULL;
|
||||
|
||||
(void)path_buf;
|
||||
|
||||
#if defined(_WIN32)
|
||||
snprintf(path_buf, sizeof(path_buf), "%s\\*", name);
|
||||
rdir->directory = FindFirstFile(path_buf, &rdir->entry);
|
||||
|
@ -114,7 +118,6 @@ bool retro_dirent_is_dir(struct RDIR *rdir, const char *path)
|
|||
const WIN32_FIND_DATA *entry = (const WIN32_FIND_DATA*)rdir->entry;
|
||||
return entry->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY;
|
||||
#elif defined(PSP) || defined(VITA)
|
||||
|
||||
const SceIoDirent *entry = (const SceIoDirent*)rdir->entry;
|
||||
#if defined(PSP)
|
||||
return (entry->d_stat.st_attr & FIO_SO_IFDIR) == FIO_SO_IFDIR;
|
||||
|
|
|
@ -380,7 +380,6 @@ static int rarch_defer_core_wrapper(size_t idx, size_t entry_idx, const char *pa
|
|||
int ret = 0;
|
||||
menu_handle_t *menu = menu_driver_get_ptr();
|
||||
menu_list_t *menu_list = menu_list_get_ptr();
|
||||
settings_t *settings = config_get_ptr();
|
||||
global_t *global = global_get_ptr();
|
||||
|
||||
if (!menu)
|
||||
|
@ -1644,8 +1643,6 @@ static int action_ok_load_archive_detect_core(const char *path,
|
|||
const char *label, unsigned type, size_t idx, size_t entry_idx)
|
||||
{
|
||||
int ret = 0;
|
||||
menu_displaylist_info_t info = {0};
|
||||
settings_t *settings = config_get_ptr();
|
||||
global_t *global = global_get_ptr();
|
||||
size_t selected = menu_navigation_get_current_selection();
|
||||
menu_handle_t *menu = menu_driver_get_ptr();
|
||||
|
|
Loading…
Reference in New Issue