Remove unneeded variables

This commit is contained in:
Twinaphex 2016-10-21 19:07:28 +02:00
parent 84d750bae1
commit 7050ecf287

View File

@ -146,8 +146,7 @@ static bool gl_raster_font_upload_atlas(gl_raster_t *font)
static void *gl_raster_font_init_font(void *data,
const char *font_path, float font_size)
{
const struct font_atlas *atlas = NULL;
gl_raster_t *font = (gl_raster_t*)calloc(1, sizeof(*font));
gl_raster_t *font = (gl_raster_t*)calloc(1, sizeof(*font));
settings_t *settings = config_get_ptr();
if (!font)
@ -214,7 +213,6 @@ static void gl_raster_font_free_font(void *data)
static int gl_get_message_width(void *data, const char *msg,
unsigned msg_len, float scale)
{
unsigned i;
gl_raster_t *font = (gl_raster_t*)data;
const char* msg_end = msg + msg_len;
int delta_x = 0;