From 898f934759cb19639effe1ed0da10c77b1dd669e Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 19 Sep 2021 10:22:41 -0700 Subject: [PATCH] smyrna: remove unused 'drawEllipse' --- cmd/smyrna/draw.c | 15 --------------- cmd/smyrna/draw.h | 1 - 2 files changed, 16 deletions(-) diff --git a/cmd/smyrna/draw.c b/cmd/smyrna/draw.c index 0640244f5..bd27476ab 100644 --- a/cmd/smyrna/draw.c +++ b/cmd/smyrna/draw.c @@ -400,21 +400,6 @@ drawfunc_t OpFns[] = { (drawfunc_t)InsertImage, }; -void drawEllipse(float xradius, float yradius, int angle1, int angle2) -{ - int i; - glBegin(GL_LINE_STRIP); - - for (i = angle1; i <= angle2; i++) { - //convert degrees into radians - float degInRad = (float) i * (float) DEG2RAD; - glVertex3f((GLfloat) (cos(degInRad) * xradius), - (GLfloat) (sin(degInRad) * yradius), view->Topview->global_z); - } - - glEnd(); -} - void draw_selpoly(glCompPoly* selPoly) { int i; diff --git a/cmd/smyrna/draw.h b/cmd/smyrna/draw.h index 860ee0181..8c4d18a3e 100644 --- a/cmd/smyrna/draw.h +++ b/cmd/smyrna/draw.h @@ -28,7 +28,6 @@ extern "C" { extern drawfunc_t OpFns[]; extern void drawCircle(float x, float y, float radius, float zdepth); extern void drawBorders(ViewInfo * view); -extern void drawEllipse(float xradius, float yradius, int angle1, int angle2); extern void draw_selpoly(glCompPoly* selPoly); #ifdef __cplusplus -- 2.40.0