main: Remove redundant if

pull/12/head
Andri Yngvason 2022-06-29 17:12:35 +00:00
parent af59624f83
commit 3a3d129e8f
1 changed files with 5 additions and 8 deletions

View File

@ -530,8 +530,6 @@ void on_vnc_client_update_fb(struct vnc_client* client)
struct pixman_region16 frame_damage = { 0 };
pixman_region_copy(&frame_damage, &client->damage);
if (client->n_av_frames != 0) {
for (int i = 0; i < client->n_av_frames; ++i) {
const struct vnc_av_frame* frame = client->av_frames[i];
@ -539,7 +537,6 @@ void on_vnc_client_update_fb(struct vnc_client* client)
frame->x, frame->y, frame->width,
frame->height);
}
}
struct pixman_region16 damage_scaled = { 0 }, damage = { 0 };
region_scale(&damage_scaled, &frame_damage, scale);