From 740ffc03b415be46edc7112ce1778d5f3346b0f7 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Thu, 10 Dec 2020 15:22:18 +0100 Subject: [PATCH] Removed unused variables in DoubleSlider::Control --- src/slic3r/GUI/DoubleSlider.cpp | 4 ---- src/slic3r/GUI/DoubleSlider.hpp | 4 ---- 2 files changed, 8 deletions(-) diff --git a/src/slic3r/GUI/DoubleSlider.cpp b/src/slic3r/GUI/DoubleSlider.cpp index a90712cd02..ce268e006b 100644 --- a/src/slic3r/GUI/DoubleSlider.cpp +++ b/src/slic3r/GUI/DoubleSlider.cpp @@ -1359,10 +1359,6 @@ void Control::OnMotion(wxMouseEvent& event) m_focus = fiLowerThumb; else if (is_point_in_rect(pos, m_rect_higher_thumb)) m_focus = fiHigherThumb; - else if (is_point_in_rect(pos, m_rect_lower_thumb_text)) - m_focus = fiLowerThumbText; - else if (is_point_in_rect(pos, m_rect_higher_thumb_text)) - m_focus = fiHigherThumbText; else { m_focus = fiTick; tick = get_tick_near_point(pos); diff --git a/src/slic3r/GUI/DoubleSlider.hpp b/src/slic3r/GUI/DoubleSlider.hpp index 3eb905923a..56baef6cf2 100644 --- a/src/slic3r/GUI/DoubleSlider.hpp +++ b/src/slic3r/GUI/DoubleSlider.hpp @@ -43,8 +43,6 @@ enum FocusedItem { fiActionIcon, fiLowerThumb, fiHigherThumb, - fiLowerThumbText, - fiHigherThumbText, fiTick }; @@ -373,8 +371,6 @@ private: wxRect m_rect_lower_thumb; wxRect m_rect_higher_thumb; - mutable wxRect m_rect_lower_thumb_text; - mutable wxRect m_rect_higher_thumb_text; wxRect m_rect_tick_action; wxRect m_rect_one_layer_icon; wxRect m_rect_revert_icon;