Remove some unused #includes / parameters

This commit is contained in:
Casper Jeukendrup 2023-11-20 00:18:11 +01:00
parent 390ba9c036
commit 515e5638bf
No known key found for this signature in database
GPG key ID: 6C571BEF59E722DD
5 changed files with 6 additions and 9 deletions

View file

@ -29,7 +29,6 @@
#include "mpe/events.h"
#include "engraving/types/types.h"
#include "internal/inotationundostack.h"
#include "notationtypes.h"
namespace mu::notation {
@ -38,7 +37,7 @@ class INotationPlayback
public:
virtual ~INotationPlayback() = default;
virtual void init(INotationUndoStackPtr undoStack) = 0;
virtual void init() = 0;
virtual const engraving::InstrumentTrackId& metronomeTrackId() const = 0;
virtual engraving::InstrumentTrackId chordSymbolsTrackId(const ID& partId) const = 0;

View file

@ -122,7 +122,7 @@ void MasterNotation::initAfterSettingScore(const MasterScore* score)
updateExcerpts();
});
m_notationPlayback->init(m_undoStack);
m_notationPlayback->init();
initExcerptNotations(score->excerpts());
}

View file

@ -24,9 +24,7 @@
#include <memory>
#include "modularity/ioc.h"
#include "types/retval.h"
#include "project/types/projecttypes.h"
#include "async/notification.h"
#include "notation.h"
#include "../imasternotation.h"

View file

@ -62,9 +62,9 @@ mu::engraving::Score* NotationPlayback::score() const
return m_getScore->score();
}
void NotationPlayback::init(INotationUndoStackPtr undoStack)
void NotationPlayback::init()
{
IF_ASSERT_FAILED(score() && undoStack) {
IF_ASSERT_FAILED(score()) {
return;
}

View file

@ -45,7 +45,7 @@ class NotationPlayback : public INotationPlayback, public async::Asyncable
public:
NotationPlayback(IGetScore* getScore, async::Notification notationChanged);
void init(INotationUndoStackPtr undoStack) override;
void init() override;
const engraving::InstrumentTrackId& metronomeTrackId() const override;
engraving::InstrumentTrackId chordSymbolsTrackId(const ID& partId) const override;