From 0dcfe12775c2cbf76c6ff9381012dce4eafdb124 Mon Sep 17 00:00:00 2001 From: Rodolfo Ribeiro Gomes Date: Dec 13 2019 04:29:26 +0000 Subject: excludes commented and unused code erroneously committed :( --- diff --git a/synfig-studio/src/gui/widgets/widget_curves.cpp b/synfig-studio/src/gui/widgets/widget_curves.cpp index 4d8ea14..2f85cfa 100644 --- a/synfig-studio/src/gui/widgets/widget_curves.cpp +++ b/synfig-studio/src/gui/widgets/widget_curves.cpp @@ -404,8 +404,6 @@ Widget_Curves::on_event(GdkEvent *event) bool selection_changed = false; if (pointer_state == POINTER_SELECTING) { - //ChannelPoint cp; - //bool found = find_channelpoint_at_position(pointer_x, pointer_y, cp); std::vector cps; int x0 = std::min(pointer_tracking_start_x, pointer_x); int width = std::abs(pointer_tracking_start_x - pointer_x); @@ -655,11 +653,6 @@ Widget_Curves::on_draw(const Cairo::RefPtr &cr) 0, //0 - waypoint_edge_length/2 + 1 + py, waypoint_edge_length - 2, waypoint_edge_length - 2); - std::vector::iterator selection_it = std::find_if(selected_points.begin(), selected_points.end(), - [&tp](ChannelPoint cp) { - return cp.time_point == &tp; - }); - bool selected = selection_it != selected_points.end(); bool hover = &tp == hovered_point.time_point; for (int c = 0; c < channels; ++c) { Real y = curve_it->get_value(c, t, time_plot_data->dt);