13
0

Address another -Wunused-private-field

TrackSelection is just a different name for TrackViewList
the private _editor is no longer needed nor used.
This commit is contained in:
Robin Gareus 2021-03-18 04:06:46 +01:00
parent cc79bc07ed
commit d4c3e43b03
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
4 changed files with 4 additions and 30 deletions

View File

@ -5481,7 +5481,6 @@ SelectionDrag::SelectionDrag (Editor* e, ArdourCanvas::Item* i, Operation o)
: Drag (e, i) : Drag (e, i)
, _operation (o) , _operation (o)
, _add (false) , _add (false)
, _track_selection_at_start (e)
, _time_selection_at_start (!_editor->get_selection().time.empty()) , _time_selection_at_start (!_editor->get_selection().time.empty())
{ {
DEBUG_TRACE (DEBUG::Drags, "New SelectionDrag\n"); DEBUG_TRACE (DEBUG::Drags, "New SelectionDrag\n");

View File

@ -64,8 +64,7 @@ struct AudioRangeComparator {
}; };
Selection::Selection (const PublicEditor* e, bool mls) Selection::Selection (const PublicEditor* e, bool mls)
: tracks (e) : editor (e)
, editor (e)
, next_time_id (0) , next_time_id (0)
, manage_libardour_selection (mls) , manage_libardour_selection (mls)
{ {

View File

@ -18,25 +18,9 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/ */
#include <algorithm>
#include "ardour/route_group.h"
#include "control_protocol/control_protocol.h"
#include "track_selection.h" #include "track_selection.h"
#include "time_axis_view.h"
#include "public_editor.h"
#include "vca_time_axis.h"
using namespace std; TrackSelection::TrackSelection (TrackViewList const& t)
TrackSelection::TrackSelection (PublicEditor const * e, TrackViewList const &t)
: TrackViewList (t) : TrackViewList (t)
, _editor (e)
{ {
} }
TrackSelection::~TrackSelection ()
{
}

View File

@ -23,19 +23,11 @@
#include "track_view_list.h" #include "track_view_list.h"
class PublicEditor;
class TrackSelection : public TrackViewList class TrackSelection : public TrackViewList
{ {
public: public:
TrackSelection (PublicEditor const * e) : _editor (e) {} TrackSelection () {}
TrackSelection (PublicEditor const *, TrackViewList const &); TrackSelection (TrackViewList const &);
virtual ~TrackSelection ();
private:
PublicEditor const * _editor;
}; };
#endif /* __ardour_gtk_track_selection_h__ */ #endif /* __ardour_gtk_track_selection_h__ */