From e720f576caeb1ce5a8910699569b819efba38fa4 Mon Sep 17 00:00:00 2001 From: Desmis Date: Wed, 22 Feb 2017 06:55:03 +0100 Subject: [PATCH] Clean code --- rtgui/edit.cc | 4 ---- rtgui/locallab.cc | 2 -- 2 files changed, 6 deletions(-) diff --git a/rtgui/edit.cc b/rtgui/edit.cc index 570239634..b6e87fab5 100644 --- a/rtgui/edit.cc +++ b/rtgui/edit.cc @@ -329,7 +329,6 @@ void Arcellipse::drawOuterGeometry (Cairo::RefPtr &cr, ObjectMOB } cr->save(); - cr->move_to (center_.x , center_.y); cr->translate (translax_, translay_); cr->scale (scalx_, scaly_); @@ -383,7 +382,6 @@ void Arcellipse::drawInnerGeometry (Cairo::RefPtr &cr, ObjectMOB if (filled && state != INSENSITIVE) { cr->save(); - cr->move_to (center_.x , center_.y); cr->translate (translax_, translay_); @@ -402,7 +400,6 @@ void Arcellipse::drawInnerGeometry (Cairo::RefPtr &cr, ObjectMOB } } else if (innerLineWidth > 0.) { cr->save(); - cr->move_to (center_.x , center_.y); cr->translate (translax_ , translay_); @@ -457,7 +454,6 @@ void Arcellipse::drawToMOChannel (Cairo::RefPtr &cr, unsigned sh } cr->save(); - cr->move_to (center_.x , center_.y); cr->translate (translax_ , translay_); diff --git a/rtgui/locallab.cc b/rtgui/locallab.cc index f7d4ae7a0..e493983a2 100644 --- a/rtgui/locallab.cc +++ b/rtgui/locallab.cc @@ -1967,8 +1967,6 @@ void Locallab::updateGeometry (const int centerX_, const int centerY_, const int updateCircle (visibleGeometry.at (4)); updateCircle (mouseOverGeometry.at (4)); - //double decay10 = ((decayX * decayY)/ sqrt(0.03107 * SQR(decayX) + SQR(decayY)))/0.9848; - //double decay5 = ((decayX * decayY)/ sqrt(0.007655 * SQR(decayX) + SQR(decayY)))/0.9659; if (options.showdelimspot) { //this decayww evaluate approximation of a point in the ellipse for an angle alpha double decay15 = 1.07854 * ((decayX * decayY) / sqrt (0.07179 * SQR (decayX) + SQR (decayY))); //0.07179 = SQR(sin(15)/cos(15)) 1.07854 = 1 / cos(15)