]> granicus.if.org Git - graphviz/commitdiff
smyrna appmouse_up: remove no-op branches
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 24 Dec 2022 21:46:58 +0000 (13:46 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 24 Dec 2022 22:01:30 +0000 (14:01 -0800)
cmd/smyrna/gui/appmouse.c

index 09020eb9a63060bd99c981d964d032ae425749a1..9facb4f3ed20da2eaa33cd7d108bd7044b3eacea 100644 (file)
@@ -70,11 +70,6 @@ static void apply_actions(ViewInfo* v,int x,int y)
     lastAction=a;
 }
 
-static int singleclick(ViewInfo* v)
-{
-       return(((int)v->mouse.initPos.x == (int)v->mouse.finalPos.x) && ((int)v->mouse.initPos.y == (int)v->mouse.finalPos.y));
-
-}
 static void appmouse_down(ViewInfo* v,int x,int y)
 {
     view->mouse.dragX = 0;
@@ -94,15 +89,6 @@ static void appmouse_up(ViewInfo* v,int x,int y)
     v->mouse.finalPos.x=x;
     v->mouse.finalPos.y=y;
     to3D(x,y, &v->mouse.GLfinalPos.x,&v->mouse.GLfinalPos.y,&v->mouse.GLfinalPos.z);
-    if(singleclick(v))
-    {
-       if (v->mouse.t==glMouseLeftButton) {
-           // no-op
-       }
-       if (v->mouse.t==glMouseRightButton) {
-           // no-op
-       }
-    }
     apply_actions(v,x,y);
     view->mouse.dragX = 0;
     view->mouse.dragY = 0;