Remove unneeded code

This commit is contained in:
Lawrence Lee
2020-06-10 16:53:33 -07:00
parent 72d390e99a
commit 24681f324c
2 changed files with 1 additions and 3 deletions

View File

@@ -925,8 +925,7 @@ bool ControlLineManager::drag1(int modifierKey)
control_line->line->end = control_line->end->center; control_line->line->end = control_line->end->center;
control_line->end->state = Geometry::DRAGGED; control_line->end->state = Geometry::DRAGGED;
break; break;
case (1): case (1): { // line
case (2): { // line
// Constrain delta so the end stays above the image. // Constrain delta so the end stays above the image.
Coord new_delta = control_line->end->center + delta; Coord new_delta = control_line->end->center + delta;
new_delta.clip(iw, ih); new_delta.clip(iw, ih);

View File

@@ -25,7 +25,6 @@
#include "editwidgets.h" #include "editwidgets.h"
#include "lensgeomlistener.h" #include "lensgeomlistener.h"
#include "toolpanel.h" #include "toolpanel.h"
#include "../rtengine/coord.h"
#include "../rtengine/perspectivecorrection.h" #include "../rtengine/perspectivecorrection.h"
struct ControlLine struct ControlLine