From: Matthew Fernandez Date: Wed, 21 Dec 2022 05:50:44 +0000 (-0800) Subject: smyrna: remove unused 'magnifier' X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6baa97a6e98923364f9d1b9a613f2b1aed87fb1b;p=graphviz smyrna: remove unused 'magnifier' --- diff --git a/cmd/smyrna/smyrnadefs.h b/cmd/smyrna/smyrnadefs.h index 1bc70607f..83b137888 100644 --- a/cmd/smyrna/smyrnadefs.h +++ b/cmd/smyrna/smyrnadefs.h @@ -287,14 +287,6 @@ typedef struct } attribute; - typedef struct _magnifier { - float x, y; - float kts; //zoom X - float GLwidth, GLheight; - int width, height; //how big is the magnifier referenced from windows - int active; - } magnifier; - typedef struct{ Agraph_t *def_attrs; Agraph_t *attrs_widgets; @@ -368,9 +360,6 @@ typedef struct /*selection object,refer to smyrnadefs.h for more info */ // selection Selection; - /*rectangular magnifier object */ - magnifier mg; - viewport_camera **cameras; int camera_count; //number of cameras int active_camera; diff --git a/cmd/smyrna/viewport.c b/cmd/smyrna/viewport.c index 529caf51e..7db44910f 100644 --- a/cmd/smyrna/viewport.c +++ b/cmd/smyrna/viewport.c @@ -166,14 +166,6 @@ void set_viewport_settings_from_template(ViewInfo *vi, Agraph_t *g) { vi->LineWidth = (float) atof(get_attribute_value("defaultlinewidth", vi, g)); - vi->mg.width = - atoi(get_attribute_value("defaultmagnifierwidth", vi, g)); - vi->mg.height = - atoi(get_attribute_value("defaultmagnifierheight", vi, g)); - - vi->mg.kts = - (float) atof(get_attribute_value("defaultmagnifierkts", 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)); @@ -320,12 +312,6 @@ void init_viewport(ViewInfo * view) view->zoom = -20; - view->mg.active = 0; - view->mg.x = 0; - view->mg.y = 0; - view->mg.width = DEFAULT_MAGNIFIER_WIDTH; - view->mg.height = DEFAULT_MAGNIFIER_HEIGHT; - view->mg.kts = DEFAULT_MAGNIFIER_KTS; view->mouse.down = 0; view->activeGraph = -1; view->Topview = gv_alloc(sizeof(topview));