mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-09 23:25:43 +01:00
[Summary] Removed redundant method, fixed issue with selection range zoom
This commit is contained in:
parent
83869cb12d
commit
f5622bc91f
3 changed files with 2 additions and 13 deletions
|
|
@ -4347,8 +4347,8 @@ Editor::set_samples_per_pixel (framecnt_t spp)
|
|||
bool const showing_time_selection = selection->time.length() > 0;
|
||||
|
||||
if (showing_time_selection && selection->time.start () != selection->time.end_frame ()) {
|
||||
for (TrackViewList::iterator i = selection->tracks.begin(); i != selection->tracks.end(); ++i) {
|
||||
(*i)->reshow_selection (selection->time);
|
||||
for (TrackViewList::iterator i = selection->time.tracks_in_range.begin(); i != selection->time.tracks_in_range.end(); ++i) {
|
||||
(*i)->show_selection (selection->time);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -836,16 +836,6 @@ TimeAxisView::show_selection (TimeSelection& ts)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
TimeAxisView::reshow_selection (TimeSelection& ts)
|
||||
{
|
||||
show_selection (ts);
|
||||
|
||||
for (Children::iterator i = children.begin(); i != children.end(); ++i) {
|
||||
(*i)->show_selection (ts);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
TimeAxisView::hide_selection ()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -161,7 +161,6 @@ class TimeAxisView : public virtual AxisView
|
|||
virtual void set_samples_per_pixel (double);
|
||||
virtual void show_selection (TimeSelection&);
|
||||
virtual void hide_selection ();
|
||||
virtual void reshow_selection (TimeSelection&);
|
||||
virtual void show_timestretch (framepos_t start, framepos_t end, int layers, int layer);
|
||||
virtual void hide_timestretch ();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue