From b99721ec3b59cf22a0bd1f6583401c6da7bb5d95 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 5 Aug 2010 13:37:04 +0000 Subject: Remove somewhat confusing view_to_model_coord_x method. git-svn-id: svn://localhost/ardour2/branches/3.0@7546 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/automation_line.cc | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'gtk2_ardour/automation_line.cc') diff --git a/gtk2_ardour/automation_line.cc b/gtk2_ardour/automation_line.cc index 9ca1c59bb0..ead6a2b56d 100644 --- a/gtk2_ardour/automation_line.cc +++ b/gtk2_ardour/automation_line.cc @@ -280,7 +280,7 @@ AutomationLine::model_representation (ControlPoint& cp, ModelRepresentation& mr) mr.xval = (*cp.model())->when; } else { mr.xval = trackview.editor().unit_to_frame (mr.xval); - view_to_model_coord_x (mr.xval); + mr.xval = _time_converter.from (mr.xval); } /* convert y to model units; the x was already done above @@ -1216,16 +1216,10 @@ AutomationLine::set_state (const XMLNode &node, int version) void AutomationLine::view_to_model_coord (double& x, double& y) const { - view_to_model_coord_x (x); + x = _time_converter.from (x); view_to_model_coord_y (y); } -void -AutomationLine::view_to_model_coord_x (double& x) const -{ - x = _time_converter.from(x); -} - void AutomationLine::view_to_model_coord_y (double& y) const { -- cgit v1.2.3