lollis: remove unnecessary drag object member
This commit is contained in:
parent
2d9a2ad668
commit
01381dad77
@ -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);
|
||||
}
|
||||
|
||||
|
@ -1577,7 +1577,6 @@ class LollipopDrag : public Drag
|
||||
private:
|
||||
VelocityGhostRegion* _region;
|
||||
ArdourCanvas::Lollipop* _primary;
|
||||
double cumulative_delta;
|
||||
};
|
||||
|
||||
#endif /* __gtk2_ardour_editor_drag_h_ */
|
||||
|
Loading…
Reference in New Issue
Block a user