Remove unused functions

This commit is contained in:
twinaphex 2019-07-21 14:34:33 +02:00
parent bc47daba5e
commit 9bde8ca3e5
2 changed files with 16 additions and 41 deletions

View File

@ -13135,27 +13135,6 @@ void audio_driver_frame_is_reverse(void)
runloop_slowmotion); 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) void audio_set_float(enum audio_action action, float val)
{ {
switch (action) switch (action)
@ -14237,20 +14216,6 @@ static void video_driver_lock_new(void)
#endif #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) void video_driver_set_cached_frame_ptr(const void *data)
{ {
if (data) if (data)
@ -16776,8 +16741,22 @@ bool driver_ctl(enum driver_ctl_state state, void *data)
menu_widgets_context_destroy(); menu_widgets_context_destroy();
menu_widgets_free(); menu_widgets_free();
#endif #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 */
input_driver_keyboard_linefeed_enable = false; input_driver_keyboard_linefeed_enable = false;

View File

@ -592,10 +592,6 @@ void audio_driver_frame_is_reverse(void);
void audio_set_float(enum audio_action action, float val); 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); float *audio_get_float_ptr(enum audio_action action);
bool *audio_get_bool_ptr(enum audio_action action); bool *audio_get_bool_ptr(enum audio_action action);