From 9bde8ca3e5e7dfb91ae73ade3ae26e66cdcae6d1 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 21 Jul 2019 14:34:33 +0200 Subject: [PATCH] Remove unused functions --- retroarch.c | 53 ++++++++++++++++------------------------------------- retroarch.h | 4 ---- 2 files changed, 16 insertions(+), 41 deletions(-) diff --git a/retroarch.c b/retroarch.c index 0c5baba72f..0fa49dd776 100644 --- a/retroarch.c +++ b/retroarch.c @@ -13135,27 +13135,6 @@ void audio_driver_frame_is_reverse(void) runloop_slowmotion); } -static void audio_driver_destroy(void) -{ - audio_driver_active = false; - current_audio = NULL; -} - -void audio_set_bool(enum audio_action action, bool val) -{ - switch (action) - { - case AUDIO_ACTION_MIXER: -#ifdef HAVE_AUDIOMIXER - audio_mixer_active = val; -#endif - break; - case AUDIO_ACTION_NONE: - default: - break; - } -} - void audio_set_float(enum audio_action action, float val) { switch (action) @@ -14237,20 +14216,6 @@ static void video_driver_lock_new(void) #endif } -static void video_driver_destroy(void) -{ - video_display_server_destroy(); - crt_video_restore(); - - video_driver_use_rgba = false; - video_driver_active = false; - video_driver_cache_context = false; - video_driver_cache_context_ack = false; - video_driver_record_gpu_buffer = NULL; - current_video = NULL; - video_driver_set_cached_frame_ptr(NULL); -} - void video_driver_set_cached_frame_ptr(const void *data) { if (data) @@ -16776,8 +16741,22 @@ bool driver_ctl(enum driver_ctl_state state, void *data) menu_widgets_context_destroy(); menu_widgets_free(); #endif - video_driver_destroy(); - audio_driver_destroy(); + + /* Video */ + video_display_server_destroy(); + crt_video_restore(); + + video_driver_use_rgba = false; + video_driver_active = false; + video_driver_cache_context = false; + video_driver_cache_context_ack = false; + video_driver_record_gpu_buffer = NULL; + current_video = NULL; + video_driver_set_cached_frame_ptr(NULL); + + /* Audio */ + audio_driver_active = false; + current_audio = NULL; /* Input */ input_driver_keyboard_linefeed_enable = false; diff --git a/retroarch.h b/retroarch.h index 816c6260d2..d46f76b93f 100644 --- a/retroarch.h +++ b/retroarch.h @@ -592,10 +592,6 @@ void audio_driver_frame_is_reverse(void); void audio_set_float(enum audio_action action, float val); -void audio_set_bool(enum audio_action action, bool val); - -void audio_unset_bool(enum audio_action action, bool val); - float *audio_get_float_ptr(enum audio_action action); bool *audio_get_bool_ptr(enum audio_action action);