From 693e684b4f99a856d31179df5a87cccc35bc52a1 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 5 Dec 2015 22:58:52 +0100 Subject: [PATCH] (font_driver.c) Turn some functions static and remove others that are unused --- gfx/font_driver.c | 12 +----------- gfx/font_driver.h | 7 ------- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/gfx/font_driver.c b/gfx/font_driver.c index e8594a2dbf..b04ececcb4 100644 --- a/gfx/font_driver.c +++ b/gfx/font_driver.c @@ -37,16 +37,6 @@ static const struct font_renderer *font_osd_driver; static void *font_osd_data; -int font_renderer_get_message_width(const char *msg, float scale) -{ - const struct font_renderer *font_driver = font_osd_driver; - - if (!font_driver || !font_driver->get_message_width) - return 0; - - return font_driver->get_message_width(font_osd_data, msg, strlen(msg), scale); -} - int font_renderer_create_default(const void **data, void **handle, const char *font_path, unsigned font_size) { @@ -174,7 +164,7 @@ static bool vita2d_font_init_first( } #endif -bool font_init_first(const void **font_driver, void **font_handle, +static bool font_init_first(const void **font_driver, void **font_handle, void *video_data, const char *font_path, float font_size, enum font_driver_render_api api) { diff --git a/gfx/font_driver.h b/gfx/font_driver.h index 9ae604767a..e121cf8739 100644 --- a/gfx/font_driver.h +++ b/gfx/font_driver.h @@ -127,13 +127,6 @@ typedef struct font_renderer_driver int font_renderer_create_default(const void **driver, void **handle, const char *font_path, unsigned font_size); -int font_renderer_get_message_width(const char *msg, float scale); - -bool font_init_first( - const void **font_driver, void **font_handle, - void *video_data, const char *font_path, float font_size, - enum font_driver_render_api api); - bool font_driver_has_render_msg(void); void font_driver_render_msg(void *data, const char *msg, const struct font_params *params);