]> granicus.if.org Git - graphviz/commitdiff
smyrna: remove unused 'prevX', 'prevY'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 24 Dec 2022 21:44:30 +0000 (13:44 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 24 Dec 2022 22:01:30 +0000 (14:01 -0800)
These have never been used.

cmd/smyrna/gui/appmouse.c

index 3f8843336491bdb4730847c839fdf9d8c7bbd91a..09020eb9a63060bd99c981d964d032ae425749a1 100644 (file)
@@ -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);
 }