Remove some unused variables and some style nits

This commit is contained in:
Twinaphex 2020-05-10 01:10:45 +02:00
parent 3ad4b057f9
commit 2f3ef75bf6
2 changed files with 2 additions and 9 deletions

View File

@ -2896,8 +2896,6 @@ static bool menu_displaylist_parse_playlist_manager_settings(
const char *playlist_file = NULL;
playlist_t *playlist = NULL;
const char *menu_driver = menu_driver_ident();
settings_t *settings = config_get_ptr();
bool playlist_use_old_format = settings->bools.playlist_use_old_format;
if (string_is_empty(playlist_path))
return false;

View File

@ -4536,7 +4536,6 @@ bool ai_service_speech_stop(void)
static void task_auto_translate_handler(retro_task_t *task)
{
http_transfer_data_t *data = NULL;
int* mode_ptr = (int*)task->user_data;
if (task_get_cancelled(task))
@ -4545,20 +4544,16 @@ static void task_auto_translate_handler(retro_task_t *task)
if (*mode_ptr == 2)
{
#ifdef HAVE_ACCESSIBILITY
if (is_narrator_running() == false)
{
if (!is_narrator_running())
goto task_finished;
}
#endif
}
/* Speech Mode */
else if (*mode_ptr == 1)
{
#ifdef HAVE_AUDIOMIXER
if (is_ai_service_speech_running() == false)
{
if (!is_ai_service_speech_running())
goto task_finished;
}
#endif
}
return;