remove unneeded code in line_drag that was probably copy/pasted from control_point_drag
authorBen Loftis <ben@glw.com>
Tue, 17 Feb 2009 23:02:23 +0000 (23:02 +0000)
committerBen Loftis <ben@glw.com>
Tue, 17 Feb 2009 23:02:23 +0000 (23:02 +0000)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4618 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/editor_mouse.cc

index f8f7002fb758542e5405c9d64698c0cc43706d65..4228bcbd4da3f60213ca6b281809f025abd32eed 100644 (file)
@@ -3205,24 +3205,11 @@ Editor::line_drag_motion_callback (ArdourCanvas::Item* item, GdkEvent* event)
 
        double cy = drag_info.grab_y + drag_info.cumulative_y_drag + dy;
 
-       // calculate zero crossing point. back off by .01 to stay on the
-       // positive side of zero
-       double zero_gain_y = (1.0 - ZERO_GAIN_FRACTION) * line->height() - .01;
-
-       // line->parent_group().i2w(_unused, zero_gain_y);
-
-       // make sure we hit zero when passing through
-       if ((cy < zero_gain_y and (cy - dy) > zero_gain_y)
-                       or (cy > zero_gain_y and (cy - dy) < zero_gain_y)) {
-               cy = zero_gain_y;
-       }
-
        drag_info.cumulative_y_drag = cy - drag_info.grab_y;
 
        cy = max (0.0, cy);
        cy = min ((double) line->height(), cy);
 
-
        double fraction = 1.0 - (cy / line->height());
 
        bool push;