Remove two unused functions
This commit is contained in:
parent
bbe234898f
commit
2ef69d61ed
48
retroarch.c
48
retroarch.c
|
@ -33001,54 +33001,6 @@ static int find_video_context_driver_index(const char *ident)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* find_prev_context_driver:
|
|
||||||
*
|
|
||||||
* Finds previous driver in graphics context driver array.
|
|
||||||
**/
|
|
||||||
bool video_context_driver_find_prev_driver(void)
|
|
||||||
{
|
|
||||||
struct rarch_state *p_rarch = &rarch_st;
|
|
||||||
settings_t *settings = p_rarch->configuration_settings;
|
|
||||||
int i = find_video_context_driver_index(
|
|
||||||
settings->arrays.video_context_driver);
|
|
||||||
|
|
||||||
if (i > 0)
|
|
||||||
{
|
|
||||||
configuration_set_string(settings,
|
|
||||||
settings->arrays.video_context_driver,
|
|
||||||
gfx_ctx_drivers[i - 1]->ident);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
RARCH_WARN("Couldn't find any previous video context driver.\n");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* find_next_context_driver:
|
|
||||||
*
|
|
||||||
* Finds next driver in graphics context driver array.
|
|
||||||
**/
|
|
||||||
bool video_context_driver_find_next_driver(void)
|
|
||||||
{
|
|
||||||
struct rarch_state *p_rarch = &rarch_st;
|
|
||||||
settings_t *settings = p_rarch->configuration_settings;
|
|
||||||
int i = find_video_context_driver_index(
|
|
||||||
settings->arrays.video_context_driver);
|
|
||||||
|
|
||||||
if (i >= 0 && gfx_ctx_drivers[i + 1])
|
|
||||||
{
|
|
||||||
configuration_set_string(settings,
|
|
||||||
settings->arrays.video_context_driver,
|
|
||||||
gfx_ctx_drivers[i + 1]->ident);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
RARCH_WARN("Couldn't find any next video context driver.\n");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* video_context_driver_init:
|
* video_context_driver_init:
|
||||||
* @data : Input data.
|
* @data : Input data.
|
||||||
|
|
|
@ -1763,10 +1763,6 @@ const gfx_ctx_driver_t *video_context_driver_init_first(
|
||||||
enum gfx_ctx_api api, unsigned major, unsigned minor,
|
enum gfx_ctx_api api, unsigned major, unsigned minor,
|
||||||
bool hw_render_ctx, void **ctx_data);
|
bool hw_render_ctx, void **ctx_data);
|
||||||
|
|
||||||
bool video_context_driver_find_prev_driver(void);
|
|
||||||
|
|
||||||
bool video_context_driver_find_next_driver(void);
|
|
||||||
|
|
||||||
bool video_context_driver_write_to_image_buffer(gfx_ctx_image_t *img);
|
bool video_context_driver_write_to_image_buffer(gfx_ctx_image_t *img);
|
||||||
|
|
||||||
bool video_context_driver_get_video_output_prev(void);
|
bool video_context_driver_get_video_output_prev(void);
|
||||||
|
|
Loading…
Reference in New Issue