1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-07 23:15:36 +01:00

Remove Envelope::GetValueAtX

This commit is contained in:
Paul Licameli
2015-06-09 16:21:29 -04:00
parent 6b9e7506dd
commit c5754ee751
3 changed files with 2 additions and 12 deletions

View File

@@ -1026,14 +1026,6 @@ double Envelope::GetValue(double t) const
return temp;
}
// 'X' is in pixels and relative to track.
double Envelope::GetValueAtX(int x, const wxRect & r, double h, double pps)
{
// Convert x to time.
double t = (x - r.x) / pps + h ;//-mOffset;
return GetValue(t);
}
/// @param Lo returns last index at or before this time.
/// @param Hi returns first index after this time.
void Envelope::BinarySearchForTime( int &Lo, int &Hi, double t ) const