From 627c3ac3e5f1abb9aa410b46fe06cbb2febdda40 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 19 Sep 2021 10:19:37 -0700 Subject: [PATCH] smyrna: remove unused 'point_within_ellips_with_coords' --- cmd/smyrna/smyrna_utils.c | 12 ------------ cmd/smyrna/smyrna_utils.h | 3 --- 2 files changed, 15 deletions(-) diff --git a/cmd/smyrna/smyrna_utils.c b/cmd/smyrna/smyrna_utils.c index eb5631421..26fcc4399 100644 --- a/cmd/smyrna/smyrna_utils.c +++ b/cmd/smyrna/smyrna_utils.c @@ -219,18 +219,6 @@ glCompPoint getPointFromStr(char* str) return p; } -int point_within_ellips_with_coords(float ex, float ey, float ea, float eb, - float px, float py) -{ - - float dx, dy; - float a; - dx = px - ex; - dy = py - ey; - a = (dx * dx) / (ea * ea) + (dy * dy) / (eb * eb); - return (a <= 1); -} - int point_in_polygon(glCompPoly* selPoly,glCompPoint p) { int npol=selPoly->cnt; diff --git a/cmd/smyrna/smyrna_utils.h b/cmd/smyrna/smyrna_utils.h index 3cd5af6dc..1d1ff2eb6 100644 --- a/cmd/smyrna/smyrna_utils.h +++ b/cmd/smyrna/smyrna_utils.h @@ -25,6 +25,3 @@ extern void setColor(glCompColor* c,GLfloat R,GLfloat G,GLfloat B,GLfloat A); extern void getcolorfromschema(colorschemaset * sc, float l, float maxl,glCompColor * c); extern glCompPoint getPointFromStr(char* str); extern int point_in_polygon(glCompPoly* selPoly,glCompPoint p); -extern int point_within_ellips_with_coords(float ex, float ey, - float ea, float eb, - float px, float py); -- 2.40.0