From: Matthew Fernandez Date: Wed, 21 Dec 2022 05:46:22 +0000 (-0800) Subject: smyrna: remove unused 'fisheye_magnifier' X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=95730136091ba690f74d1ef802ca42b3cb4ed71c;p=graphviz smyrna: remove unused 'fisheye_magnifier' --- diff --git a/cmd/smyrna/smyrnadefs.h b/cmd/smyrna/smyrnadefs.h index a1c012ed6..1bc70607f 100644 --- a/cmd/smyrna/smyrnadefs.h +++ b/cmd/smyrna/smyrnadefs.h @@ -295,14 +295,6 @@ typedef struct int active; } magnifier; - typedef struct _fisheye_magnifier { - float x, y; //center coords of active circle - float distortion_factor; //distortion factor ,default 1 - int R; //radius of the magnifier - int constantR; //radius of the magnifier referenced from windows - int active; - int fisheye_distortion_fac; - } fisheye_magnifier; typedef struct{ Agraph_t *def_attrs; Agraph_t *attrs_widgets; @@ -378,8 +370,6 @@ typedef struct /*rectangular magnifier object */ magnifier mg; - /*fisheye magnifier object */ - fisheye_magnifier fmg; viewport_camera **cameras; int camera_count; //number of cameras diff --git a/cmd/smyrna/viewport.c b/cmd/smyrna/viewport.c index 5321eb520..529caf51e 100644 --- a/cmd/smyrna/viewport.c +++ b/cmd/smyrna/viewport.c @@ -174,12 +174,6 @@ void set_viewport_settings_from_template(ViewInfo *vi, Agraph_t *g) { vi->mg.kts = (float) atof(get_attribute_value("defaultmagnifierkts", vi, g)); - vi->fmg.constantR = - atoi(get_attribute_value - ("defaultfisheyemagnifierradius", vi, g)); - - vi->fmg.fisheye_distortion_fac = atoi(get_attribute_value - ("defaultfisheyemagnifierdistort", vi, g)); vi->drawnodes = atoi(get_attribute_value("drawnodes", vi, g)); vi->drawedges = atoi(get_attribute_value("drawedges", vi, g)); vi->drawnodelabels=atoi(get_attribute_value("labelshownodes", vi, g)); @@ -332,8 +326,6 @@ void init_viewport(ViewInfo * view) view->mg.width = DEFAULT_MAGNIFIER_WIDTH; view->mg.height = DEFAULT_MAGNIFIER_HEIGHT; view->mg.kts = DEFAULT_MAGNIFIER_KTS; - view->fmg.constantR = DEFAULT_FISHEYE_MAGNIFIER_RADIUS; - view->fmg.active = 0; view->mouse.down = 0; view->activeGraph = -1; view->Topview = gv_alloc(sizeof(topview));