Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
ui/console: drop have_gfx
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>
  • Loading branch information
elmarco authored and Patchew Applier committed Sep 1, 2023
1 parent bc9b8bc commit cbcf0fa
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions ui/console.c
Expand Up @@ -132,7 +132,6 @@ struct DisplayState {
uint64_t last_update;
uint64_t update_interval;
bool refreshing;
bool have_gfx;

QLIST_HEAD(, DisplayChangeListener) listeners;
};
Expand Down Expand Up @@ -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) {
Expand All @@ -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)
Expand Down

0 comments on commit cbcf0fa

Please sign in to comment.