From 24681f324c70fedc6fcda81fe7150a19a873770c Mon Sep 17 00:00:00 2001 From: Lawrence Lee Date: Wed, 10 Jun 2020 16:53:33 -0700 Subject: [PATCH] Remove unneeded code --- rtgui/perspective.cc | 3 +-- rtgui/perspective.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/rtgui/perspective.cc b/rtgui/perspective.cc index bffc2f301..cf366a766 100644 --- a/rtgui/perspective.cc +++ b/rtgui/perspective.cc @@ -925,8 +925,7 @@ bool ControlLineManager::drag1(int modifierKey) control_line->line->end = control_line->end->center; control_line->end->state = Geometry::DRAGGED; break; - case (1): - case (2): { // line + case (1): { // line // Constrain delta so the end stays above the image. Coord new_delta = control_line->end->center + delta; new_delta.clip(iw, ih); diff --git a/rtgui/perspective.h b/rtgui/perspective.h index 8ddc2c1b7..89a743a50 100644 --- a/rtgui/perspective.h +++ b/rtgui/perspective.h @@ -25,7 +25,6 @@ #include "editwidgets.h" #include "lensgeomlistener.h" #include "toolpanel.h" -#include "../rtengine/coord.h" #include "../rtengine/perspectivecorrection.h" struct ControlLine