Remove dead/annoying/unsafe code
Note the old Note::operator= was unsafe, since it made shallow copies of the on and off events, which results in a double delete of events when the notes are destructed.
This commit is contained in:
@@ -328,18 +328,6 @@ Curve::_get_vector (double x0, double x1, float *vec, int32_t veclen)
|
||||
}
|
||||
}
|
||||
|
||||
double
|
||||
Curve::unlocked_eval (double x)
|
||||
{
|
||||
// I don't see the point of this...
|
||||
|
||||
if (_dirty) {
|
||||
solve ();
|
||||
}
|
||||
|
||||
return _list.unlocked_eval (x);
|
||||
}
|
||||
|
||||
double
|
||||
Curve::multipoint_eval (double x)
|
||||
{
|
||||
@@ -416,13 +404,3 @@ Curve::multipoint_eval (double x)
|
||||
}
|
||||
|
||||
} // namespace Evoral
|
||||
|
||||
extern "C" {
|
||||
|
||||
void
|
||||
curve_get_vector_from_c (void *arg, double x0, double x1, float* vec, int32_t vecsize)
|
||||
{
|
||||
static_cast<Evoral::Curve*>(arg)->get_vector (x0, x1, vec, vecsize);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user