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:
parent
cc79bc07ed
commit
d4c3e43b03
@ -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");
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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 ()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
@ -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__ */
|
||||||
|
Loading…
Reference in New Issue
Block a user