From f9b44bbcf6dc066ef41efce1cb8df40c767fef91 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 12 Dec 2016 12:29:37 +0100 Subject: [PATCH] Cleanups --- audio/audio_resampler_driver.c | 13 ------------- audio/audio_resampler_driver.h | 9 --------- menu/menu_setting.c | 13 +++++++++++++ 3 files changed, 13 insertions(+), 22 deletions(-) diff --git a/audio/audio_resampler_driver.c b/audio/audio_resampler_driver.c index fdc32ab1e8..5de5a4e1aa 100644 --- a/audio/audio_resampler_driver.c +++ b/audio/audio_resampler_driver.c @@ -22,7 +22,6 @@ #include "audio_resampler_driver.h" #include "../config_file_userdata.h" #include "../performance_counters.h" -#include "../list_special.h" static const rarch_resampler_t *resampler_drivers[] = { &sinc_resampler, @@ -90,18 +89,6 @@ const char *audio_resampler_driver_find_ident(int idx) return drv->ident; } -/** - * config_get_audio_resampler_driver_options: - * - * Get an enumerated list of all resampler driver names, separated by '|'. - * - * Returns: string listing of all resampler driver names, separated by '|'. - **/ -const char* config_get_audio_resampler_driver_options(void) -{ - return char_list_new_special(STRING_LIST_AUDIO_RESAMPLER_DRIVERS, NULL); -} - /** * find_resampler_driver: * @ident : Identifier of resampler driver to find. diff --git a/audio/audio_resampler_driver.h b/audio/audio_resampler_driver.h index 7f3f995930..5fd0e3bf38 100644 --- a/audio/audio_resampler_driver.h +++ b/audio/audio_resampler_driver.h @@ -139,15 +139,6 @@ extern rarch_resampler_t CC_resampler; extern rarch_resampler_t nearest_resampler; extern rarch_resampler_t null_resampler; -/** - * config_get_audio_resampler_driver_options: - * - * Get an enumerated list of all resampler driver names, separated by '|'. - * - * Returns: string listing of all resampler driver names, separated by '|'. - **/ -const char* config_get_audio_resampler_driver_options(void); - /** * audio_resampler_driver_find_handle: * @index : index of driver to get handle to. diff --git a/menu/menu_setting.c b/menu/menu_setting.c index 90082d721e..9e777fb192 100644 --- a/menu/menu_setting.c +++ b/menu/menu_setting.c @@ -61,6 +61,7 @@ #include "../dirs.h" #include "../paths.h" #include "../dynamic.h" +#include "../list_special.h" #include "../runloop.h" #include "../verbosity.h" #include "../camera/camera_driver.h" @@ -2122,6 +2123,18 @@ static bool setting_append_list_input_player_options( return true; } +/** + * config_get_audio_resampler_driver_options: + * + * Get an enumerated list of all resampler driver names, separated by '|'. + * + * Returns: string listing of all resampler driver names, separated by '|'. + **/ +static const char* config_get_audio_resampler_driver_options(void) +{ + return char_list_new_special(STRING_LIST_AUDIO_RESAMPLER_DRIVERS, NULL); +} + static bool setting_append_list( enum settings_list_type type, rarch_setting_t **list,