From: Matthew Fernandez Date: Sat, 24 Dec 2022 21:44:30 +0000 (-0800) Subject: smyrna: remove unused 'prevX', 'prevY' X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7b87093e171de4c869578ee5aa1d135e44bdfd42;p=graphviz smyrna: remove unused 'prevX', 'prevY' These have never been used. --- diff --git a/cmd/smyrna/gui/appmouse.c b/cmd/smyrna/gui/appmouse.c index 3f8843336..09020eb9a 100644 --- a/cmd/smyrna/gui/appmouse.c +++ b/cmd/smyrna/gui/appmouse.c @@ -17,9 +17,6 @@ #include "selectionfuncs.h" #include "topviewfuncs.h" - -static float prevX=0; -static float prevY=0; static int lastAction; static void apply_actions(ViewInfo* v,int x,int y) @@ -90,9 +87,6 @@ static void appmouse_down(ViewInfo* v,int x,int y) to3D(x,y,&v->mouse.GLinitPos.x,&v->mouse.GLinitPos.y,&v->mouse.GLinitPos.z); to3D( x,y, &v->mouse.GLpos.x,&v->mouse.GLpos.y,&v->mouse.GLpos.z); - - prevX=0; - prevY=0; } static void appmouse_up(ViewInfo* v,int x,int y) { @@ -121,8 +115,6 @@ static void appmouse_drag(ViewInfo* v,int x,int y) v->mouse.pos.x=x; v->mouse.pos.y=y; to3D( x,y, &v->mouse.GLpos.x,&v->mouse.GLpos.y,&v->mouse.GLpos.z); - prevX=v->mouse.GLpos.x; - prevY=v->mouse.GLpos.y; apply_actions(v,x,y); }