13
0

Remove somewhat confusing view_to_model_coord_x method.

git-svn-id: svn://localhost/ardour2/branches/3.0@7546 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-08-05 13:37:04 +00:00
parent 5e3ca4db5c
commit b99721ec3b
2 changed files with 2 additions and 9 deletions

View File

@ -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
{

View File

@ -109,7 +109,6 @@ class AutomationLine : public sigc::trackable, public PBD::StatefulDestructible
std::string fraction_to_string (double) const;
double string_to_fraction (std::string const &) const;
void view_to_model_coord (double& x, double& y) const;
void view_to_model_coord_x (double &) const;
void view_to_model_coord_y (double &) const;
void model_to_view_coord (double& x, double& y) const;