From 59c40b0ee7cd864dd098f5ac41bbfe96e7bd0e9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Fri, 4 Sep 2020 13:02:04 +0200 Subject: [PATCH] present/wnmd: Remove dead present_wnmd_can_window_flip present_can_window_flip is only called from the Xorg modesetting driver, never in WNMD mode. Reviewed-by: Roman Gilg --- present/present_wnmd.c | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/present/present_wnmd.c b/present/present_wnmd.c index 97b8fe00c..68b135848 100644 --- a/present/present_wnmd.c +++ b/present/present_wnmd.c @@ -413,34 +413,6 @@ present_wnmd_cancel_flip(WindowPtr window) present_wnmd_flips_stop(window); } -static Bool -present_wnmd_can_window_flip(WindowPtr window) -{ - ScreenPtr screen = window->drawable.pScreen; - present_screen_priv_ptr screen_priv = present_screen_priv(screen); - WindowPtr toplvl_window = present_wnmd_toplvl_pixmap_window(window); - - if (!screen_priv) - return FALSE; - - if (!screen_priv->wnmd_info) - return FALSE; - - /* Check to see if the driver supports flips at all */ - if (!screen_priv->wnmd_info->flip) - return FALSE; - - /* Don't flip redirected windows */ - if (window->redirectDraw != RedirectDrawNone) - return FALSE; - - /* Window must be same region as toplevel window */ - if ( !RegionEqual(&window->winSize, &toplvl_window->winSize) ) - return FALSE; - - return TRUE; -} - /* * Once the required MSC has been reached, execute the pending request. * @@ -725,7 +697,6 @@ present_wnmd_init_mode_hooks(present_screen_priv_ptr screen_priv) screen_priv->check_flip = &present_wnmd_check_flip; screen_priv->check_flip_window = &present_wnmd_check_flip_window; - screen_priv->can_window_flip = &present_wnmd_can_window_flip; screen_priv->present_pixmap = &present_wnmd_pixmap; screen_priv->create_event_id = &present_wnmd_create_event_id;