[Summary] Removed redundant method, fixed issue with selection range zoom

This commit is contained in:
GZharun 2014-12-10 13:42:53 +02:00
parent 83869cb12d
commit f5622bc91f
3 changed files with 2 additions and 13 deletions

View file

@ -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);
}
}

View file

@ -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 ()
{

View file

@ -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 ();