Remove stub update_title functions

This commit is contained in:
twinaphex 2017-01-19 01:58:44 +01:00
parent b6c0e57946
commit b96e0bb820
15 changed files with 19 additions and 68 deletions

View File

@ -312,10 +312,6 @@ static bool android_gfx_ctx_set_resize(void *data,
return false;
}
static void android_gfx_ctx_update_title(void *data, video_frame_info_t *video_info)
{
}
static bool android_gfx_ctx_set_video_mode(void *data,
video_frame_info_t *video_info,
unsigned width, unsigned height,
@ -607,7 +603,7 @@ const gfx_ctx_driver_t gfx_ctx_android = {
NULL, /* get_video_output_next */
android_gfx_ctx_get_metrics,
NULL,
android_gfx_ctx_update_title,
NULL, /* update_title */
android_gfx_ctx_check_window,
android_gfx_ctx_set_resize,
android_gfx_ctx_has_focus,

View File

@ -108,10 +108,6 @@ static bool gfx_ctx_cgl_set_resize(void *data, unsigned width, unsigned height)
return false;
}
static void gfx_ctx_cgl_update_title(void *data, video_frame_info_t *video_info)
{
}
static bool gfx_ctx_cgl_set_video_mode(void *data,
video_frame_info_t *video_info,
unsigned width, unsigned height,
@ -352,7 +348,7 @@ const gfx_ctx_driver_t gfx_ctx_cgl = {
NULL, /* get_video_output_next */
NULL, /* get_metrics */
NULL,
gfx_ctx_cgl_update_window_title,
NULL, /* update_title */
gfx_ctx_cgl_check_window,
gfx_ctx_cgl_set_resize,
gfx_ctx_cgl_has_focus,

View File

@ -416,9 +416,9 @@ static void cocoagl_gfx_ctx_get_video_size(void *data, unsigned* width, unsigned
*height = CGRectGetHeight(size) * screenscale;
}
#if defined(HAVE_COCOA)
static void cocoagl_gfx_ctx_update_title(void *data, video_frame_info_t *video_info)
{
#if defined(HAVE_COCOA)
ui_window_cocoa_t view;
const ui_window_t *window = ui_companion_driver_get_window_ptr();
@ -426,8 +426,8 @@ static void cocoagl_gfx_ctx_update_title(void *data, video_frame_info_t *video_i
if (window && video_info->monitor_fps_enable)
window->set_title(&view, video_info->window_text);
#endif
}
#endif
static bool cocoagl_gfx_ctx_get_metrics(void *data, enum display_metric_types type,
float *value)
@ -620,7 +620,11 @@ const gfx_ctx_driver_t gfx_ctx_cocoagl = {
NULL, /* get_video_output_next */
cocoagl_gfx_ctx_get_metrics,
NULL,
#if defined(HAVE_COCOA)
cocoagl_gfx_ctx_update_title,
#else
NULL, /* update_title */
#endif
cocoagl_gfx_ctx_check_window,
cocoagl_gfx_ctx_set_resize,
cocoagl_gfx_ctx_has_focus,

View File

@ -268,10 +268,6 @@ static bool gfx_ctx_drm_set_resize(void *data,
return false;
}
static void gfx_ctx_drm_update_window_title(void *data, video_frame_info_t *video_info)
{
}
static void gfx_ctx_drm_get_video_size(void *data,
unsigned *width, unsigned *height)
{
@ -877,7 +873,7 @@ const gfx_ctx_driver_t gfx_ctx_drm = {
NULL, /* get_video_output_next */
NULL, /* get_metrics */
NULL,
gfx_ctx_drm_update_window_title,
NULL, /* update_window_title */
gfx_ctx_drm_check_window,
gfx_ctx_drm_set_resize,
gfx_ctx_drm_has_focus,

View File

@ -89,10 +89,6 @@ static bool gfx_ctx_emscripten_set_resize(void *data,
return false;
}
static void gfx_ctx_emscripten_update_title(void *data, video_frame_info_t *video_info)
{
}
static void gfx_ctx_emscripten_get_video_size(void *data,
unsigned *width, unsigned *height)
{
@ -320,7 +316,7 @@ const gfx_ctx_driver_t gfx_ctx_emscripten = {
NULL, /* get_video_output_next */
NULL, /* get_metrics */
gfx_ctx_emscripten_translate_aspect,
gfx_ctx_emscripten_update_title,
NULL, /* update_title */
gfx_ctx_emscripten_check_window,
gfx_ctx_emscripten_set_resize,
gfx_ctx_emscripten_has_focus,

View File

@ -47,10 +47,6 @@ static bool gfx_ctx_null_set_resize(void *data, unsigned width, unsigned height)
return false;
}
static void gfx_ctx_null_update_window_title(void *data, video_frame_info_t *video_info)
{
}
static void gfx_ctx_null_get_video_size(void *data, unsigned *width, unsigned *height)
{
(void)data;
@ -158,7 +154,7 @@ const gfx_ctx_driver_t gfx_ctx_null = {
NULL, /* get_video_output_next */
NULL, /* get_metrics */
NULL,
gfx_ctx_null_update_window_title,
NULL, /* update_title */
gfx_ctx_null_check_window,
gfx_ctx_null_set_resize,
gfx_ctx_null_has_focus,

View File

@ -109,10 +109,6 @@ static bool gfx_ctx_khr_display_set_resize(void *data,
return false;
}
static void gfx_ctx_khr_display_update_window_title(void *data, video_frame_info_t *video_info)
{
}
static bool gfx_ctx_khr_display_set_video_mode(void *data,
video_frame_info_t *video_info,
unsigned width, unsigned height,
@ -233,7 +229,7 @@ const gfx_ctx_driver_t gfx_ctx_khr_display = {
NULL, /* get_video_output_next */
NULL, /* get_metrics */
NULL,
gfx_ctx_khr_display_update_window_title,
NULL, /* update_title */
gfx_ctx_khr_display_check_window,
gfx_ctx_khr_display_set_resize,
gfx_ctx_khr_display_has_focus,

View File

@ -156,10 +156,6 @@ static bool gfx_ctx_mali_fbdev_set_resize(void *data,
return false;
}
static void gfx_ctx_mali_fbdev_update_title(void *data, video_frame_info_t *video_info)
{
}
static bool gfx_ctx_mali_fbdev_set_video_mode(void *data,
video_frame_info_t *video_info,
unsigned width, unsigned height,
@ -308,7 +304,7 @@ const gfx_ctx_driver_t gfx_ctx_mali_fbdev = {
NULL, /* get_video_output_next */
NULL, /* get_metrics */
NULL,
gfx_ctx_mali_fbdev_update_title,
NULL, /* update_title */
gfx_ctx_mali_fbdev_check_window,
gfx_ctx_mali_fbdev_set_resize,
gfx_ctx_mali_fbdev_has_focus,

View File

@ -140,10 +140,6 @@ static bool gfx_ctx_opendingux_set_resize(void *data,
return false;
}
static void gfx_ctx_opendingux_update_title(void *data, video_frame_info_t *video_info)
{
}
static bool gfx_ctx_opendingux_set_video_mode(void *data,
video_frame_info_t *video_info,
unsigned width, unsigned height,
@ -282,7 +278,7 @@ const gfx_ctx_driver_t gfx_ctx_opendingux_fbdev = {
NULL, /* get_video_output_next */
NULL, /* get_metrics */
NULL,
gfx_ctx_opendingux_update_window_title,
NULL, /* update_title */
gfx_ctx_opendingux_check_window,
gfx_ctx_opendingux_set_resize,
gfx_ctx_opendingux_has_focus,

View File

@ -305,10 +305,6 @@ static void osmesa_ctx_get_video_size(void *data,
*height = osmesa->height;
}
static void osmesa_ctx_update_title(void *data, video_frame_info_t *video_info)
{
}
static void osmesa_ctx_check_window(void *data, bool *quit,
bool *resize,unsigned *width,
unsigned *height)
@ -404,7 +400,7 @@ const gfx_ctx_driver_t gfx_ctx_osmesa =
NULL, /* get_video_output_next */
NULL, /* get_metrics */
NULL, /* translate_aspect */
osmesa_ctx_update_title,
NULL, /* update_title */
osmesa_ctx_check_window,
osmesa_ctx_set_resize,
osmesa_ctx_has_focus,

View File

@ -198,10 +198,6 @@ static bool gfx_ctx_ps3_set_resize(void *data,
return false;
}
static void gfx_ctx_ps3_update_title(void *data, video_frame_info_t *video_info)
{
}
static void gfx_ctx_ps3_get_video_size(void *data,
unsigned *width, unsigned *height)
{
@ -421,7 +417,7 @@ const gfx_ctx_driver_t gfx_ctx_ps3 = {
gfx_ctx_ps3_get_video_output_next,
NULL, /* get_metrics */
NULL,
gfx_ctx_ps3_update_title,
NULL, /* update_title */
gfx_ctx_ps3_check_window,
gfx_ctx_ps3_set_resize,
gfx_ctx_ps3_has_focus,

View File

@ -316,10 +316,6 @@ static bool gfx_ctx_qnx_set_resize(void *data,
return false;
}
static void gfx_ctx_qnx_update_title(void *data, video_frame_info_t *video_info)
{
}
static bool gfx_ctx_qnx_set_video_mode(void *data,
video_frame_info_t *video_info,
unsigned width, unsigned height,
@ -481,7 +477,7 @@ const gfx_ctx_driver_t gfx_ctx_qnx = {
NULL, /* get_video_output_next */
gfx_ctx_qnx__get_metrics,
NULL,
gfx_ctx_qnx_update_title,
NULL, /* update_title */
gfx_ctx_qnx_check_window,
gfx_ctx_qnx_set_resize,
gfx_ctx_qnx_has_focus,

View File

@ -104,10 +104,6 @@ static bool gfx_ctx_vc_set_resize(void *data, unsigned width, unsigned height)
return false;
}
static void gfx_ctx_vc_update_title(void *data, video_frame_info_t *video_info)
{
}
static void gfx_ctx_vc_get_video_size(void *data,
unsigned *width, unsigned *height)
{
@ -649,7 +645,7 @@ const gfx_ctx_driver_t gfx_ctx_videocore = {
NULL, /* get_video_output_next */
NULL, /* get_metrics */
gfx_ctx_vc_translate_aspect,
gfx_ctx_vc_update_title,
NULL, /* update_title */
gfx_ctx_vc_check_window,
gfx_ctx_vc_set_resize,
gfx_ctx_vc_has_focus,

View File

@ -144,10 +144,6 @@ static bool gfx_ctx_vivante_set_resize(void *data,
return false;
}
static void gfx_ctx_vivante_update_title(void *data, video_frame_info_t *video_info)
{
}
static bool gfx_ctx_vivante_set_video_mode(void *data,
video_frame_info_t *video_info,
unsigned width, unsigned height,
@ -287,7 +283,7 @@ const gfx_ctx_driver_t gfx_ctx_vivante_fbdev = {
NULL, /* get_video_output_next */
NULL, /* get_metrics */
NULL,
gfx_ctx_vivante_update_title,
NULL, /* update_title */
gfx_ctx_vivante_check_window,
gfx_ctx_vivante_set_resize,
gfx_ctx_vivante_has_focus,

View File

@ -660,7 +660,6 @@ static bool gfx_ctx_x_set_video_mode(void *data,
break;
}
x11_set_window_attr(g_x11_dpy, g_x11_win);
x11_update_title(NULL, video_info);