Get rid of more unused global local pointers

This commit is contained in:
twinaphex 2015-05-20 22:48:33 +02:00
parent e010a6e0bf
commit 6e327a3b8d
6 changed files with 0 additions and 11 deletions

View File

@ -276,7 +276,6 @@ static bool d3d_initialize(d3d_video_t *d3d, const video_info_t *info)
bool ret = true;
settings_t *settings = config_get_ptr();
driver_t *driver = driver_get_ptr();
global_t *global = global_get_ptr();
if (!d3d)
return false;
@ -417,7 +416,6 @@ static void d3d_calculate_rect(d3d_video_t *d3d,
bool keep, float desired_aspect)
{
settings_t *settings = config_get_ptr();
global_t *global = global_get_ptr();
if (settings->video.scale_integer)
{
@ -579,7 +577,6 @@ static bool d3d_construct(d3d_video_t *d3d,
unsigned full_x, full_y;
driver_t *driver = driver_get_ptr();
settings_t *settings = config_get_ptr();
global_t *global = global_get_ptr();
d3d->should_resize = false;
@ -1366,7 +1363,6 @@ static void d3d_overlay_render(d3d_video_t *d3d, overlay_t *overlay)
D3DDECL_END()
};
#endif
global_t *global = global_get_ptr();
if (!d3d)
return;
@ -1636,7 +1632,6 @@ static bool d3d_frame(void *data, const void *frame,
runloop_t *runloop = rarch_main_get_ptr();
driver_t *driver = driver_get_ptr();
settings_t *settings = config_get_ptr();
global_t *global = global_get_ptr();
const font_renderer_t *font_ctx = driver->font_osd_driver;
(void)i;

View File

@ -392,7 +392,6 @@ static int omapfb_alloc_mem(omapfb_data_t *pdata)
void* mem = NULL;
const struct retro_game_geometry *geom = NULL;
struct retro_system_av_info *av_info = NULL;
global_t *global = global_get_ptr();
assert(pdata->current_state == NULL);

View File

@ -258,7 +258,6 @@ static void *psp_init(const video_info_t *video,
int pixel_format, lut_pixel_format, lut_block_count;
unsigned int red_shift, color_mask;
void *displayBuffer, *LUT_r, *LUT_b;
global_t *global = global_get_ptr();
psp1_video_t *psp = (psp1_video_t*)calloc(1, sizeof(psp1_video_t));
if (!psp)
@ -698,7 +697,6 @@ static void psp_update_viewport(psp1_video_t* psp)
float width = SCEGU_SCR_WIDTH;
float height = SCEGU_SCR_HEIGHT;
settings_t *settings = config_get_ptr();
global_t *global = global_get_ptr();
if (settings->video.scale_integer)
{

View File

@ -262,7 +262,6 @@ static void sdl_refresh_viewport(sdl2_video_t *vid)
{
int win_w, win_h;
settings_t *settings = config_get_ptr();
global_t *global = global_get_ptr();
SDL_GetWindowSize(vid->window, &win_w, &win_h);

View File

@ -421,7 +421,6 @@ static void *xv_init(const video_info_t *video,
XvAdaptorInfo *adaptor_info = NULL;
driver_t *driver = driver_get_ptr();
settings_t *settings = config_get_ptr();
global_t *global = global_get_ptr();
const struct retro_game_geometry *geom = NULL;
struct retro_system_av_info *av_info = NULL;
xv_t *xv = (xv_t*)calloc(1, sizeof(*xv));

View File

@ -599,7 +599,6 @@ static EGLint *egl_fill_attribs(EGLint *attr)
#ifdef GL_DEBUG
bool debug = true;
#else
global_t *global = global_get_ptr();
const struct retro_hw_render_callback *hw_render =
(const struct retro_hw_render_callback*)video_driver_callback();
bool debug = hw_render->debug_context;