diff mbox series

[PULL,08/52] ui/console: drop have_gfx

Message ID 20230904115251.4161397-9-marcandre.lureau@redhat.com
State New
Headers show
Series [PULL,01/52] ui: remove qemu_pixman_color() helper | expand

Commit Message

Marc-André Lureau Sept. 4, 2023, 11:52 a.m. UTC
From: Marc-André Lureau <marcandre.lureau@redhat.com>

All usages have been removed.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20230830093843.3531473-9-marcandre.lureau@redhat.com>
---
 ui/console.c | 7 -------
 1 file changed, 7 deletions(-)
diff mbox series

Patch

diff --git a/ui/console.c b/ui/console.c
index 2bc4c153de..fc1836782d 100644
--- a/ui/console.c
+++ b/ui/console.c
@@ -132,7 +132,6 @@  struct DisplayState {
     uint64_t last_update;
     uint64_t update_interval;
     bool refreshing;
-    bool have_gfx;
 
     QLIST_HEAD(, DisplayChangeListener) listeners;
 };
@@ -183,15 +182,11 @@  static void gui_setup_refresh(DisplayState *ds)
 {
     DisplayChangeListener *dcl;
     bool need_timer = false;
-    bool have_gfx = false;
 
     QLIST_FOREACH(dcl, &ds->listeners, next) {
         if (dcl->ops->dpy_refresh != NULL) {
             need_timer = true;
         }
-        if (dcl->ops->dpy_gfx_update != NULL) {
-            have_gfx = true;
-        }
     }
 
     if (need_timer && ds->gui_timer == NULL) {
@@ -202,8 +197,6 @@  static void gui_setup_refresh(DisplayState *ds)
         timer_free(ds->gui_timer);
         ds->gui_timer = NULL;
     }
-
-    ds->have_gfx = have_gfx;
 }
 
 void graphic_hw_update_done(QemuConsole *con)