From dd3ff4b24fa126ea9c65f07068078a7dc724df93 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 22 Oct 2021 18:49:52 -0700 Subject: [PATCH] smyrna: remove unused 'clipZ*' fields --- cmd/smyrna/glexpose.c | 9 +++------ cmd/smyrna/smyrnadefs.h | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/cmd/smyrna/glexpose.c b/cmd/smyrna/glexpose.c index f04f35ac2..d4001280e 100644 --- a/cmd/smyrna/glexpose.c +++ b/cmd/smyrna/glexpose.c @@ -82,12 +82,9 @@ static int glupdatecamera(ViewInfo * vi) vi->clipX2=0; vi->clipY1=0; vi->clipY2=0; - vi->clipZ1=0; - vi->clipZ2=0; - GetOGLPosRef(1, vi->h - 5, &(vi->clipX1), &(vi->clipY1), - &(vi->clipZ1)); - GetOGLPosRef(vi->w - 1, 1, &(vi->clipX2), &(vi->clipY2), - &(vi->clipZ2)); + float ignored = 0; + GetOGLPosRef(1, vi->h - 5, &(vi->clipX1), &(vi->clipY1), &ignored); + GetOGLPosRef(vi->w - 1, 1, &(vi->clipX2), &(vi->clipY2), &ignored); if (vi->active_camera == -1) { glScalef(1 / vi->zoom * -1, 1 / vi->zoom * -1, diff --git a/cmd/smyrna/smyrnadefs.h b/cmd/smyrna/smyrnadefs.h index 76fa4fd8e..20c9ca0fc 100644 --- a/cmd/smyrna/smyrnadefs.h +++ b/cmd/smyrna/smyrnadefs.h @@ -501,7 +501,7 @@ typedef struct float zoom; /*clipping coordinates, to avoid unnecesarry rendering */ - float clipX1, clipX2, clipY1, clipY2, clipZ1, clipZ2; + float clipX1, clipX2, clipY1, clipY2; /*background color */ glCompColor bgColor; -- 2.40.0