lollis: remove unnecessary drag object member

This commit is contained in:
Paul Davis 2023-06-20 14:50:37 -06:00
parent 2d9a2ad668
commit 01381dad77
2 changed files with 0 additions and 5 deletions

View File

@ -7183,7 +7183,6 @@ RegionMarkerDrag::setup_pointer_sample_offset ()
LollipopDrag::LollipopDrag (Editor* ed, ArdourCanvas::Item* l)
: Drag (ed, l, Temporal::BeatTime)
, _primary (dynamic_cast<ArdourCanvas::Lollipop*> (l))
, cumulative_delta (0.)
{
_region = reinterpret_cast<VelocityGhostRegion*> (_item->get_data ("ghostregionview"));
}
@ -7227,9 +7226,6 @@ LollipopDrag::finished (GdkEvent *ev, bool did_move)
MidiRegionView* mrv = dynamic_cast<MidiRegionView*> (&_region->parent_rv);
assert (mrv);
double this_delta = velocity - note->note()->velocity();
cumulative_delta += this_delta;
mrv->set_velocity (note, velocity);
}

View File

@ -1577,7 +1577,6 @@ class LollipopDrag : public Drag
private:
VelocityGhostRegion* _region;
ArdourCanvas::Lollipop* _primary;
double cumulative_delta;
};
#endif /* __gtk2_ardour_editor_drag_h_ */