From de9246502cdf2a58a358bba49e2b2d1e3fc963c6 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 24 Dec 2022 13:46:58 -0800 Subject: [PATCH] smyrna appmouse_up: remove no-op branches --- cmd/smyrna/gui/appmouse.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/cmd/smyrna/gui/appmouse.c b/cmd/smyrna/gui/appmouse.c index 09020eb9a..9facb4f3e 100644 --- a/cmd/smyrna/gui/appmouse.c +++ b/cmd/smyrna/gui/appmouse.c @@ -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; -- 2.40.0