Lv2ControlBase: Remove unused virtuals

They were never used. Possibly they were just in the code because the
code originated from #4662 (where the virtuals would also be
omittable...).
This commit is contained in:
Johannes Lorenz
2022-06-04 23:50:57 +02:00
committed by Johannes Lorenz
parent 9bcf63c5da
commit 7649f5ed24
5 changed files with 0 additions and 42 deletions

View File

@@ -142,11 +142,6 @@ protected:
const class TimePos &time, f_cnt_t offset);
private:
//! Return the DataFile settings type
virtual DataFile::Types settingsType() = 0;
//! Inform the plugin about a file name change
virtual void setNameFromFile(const QString &fname) = 0;
//! Independent processors
//! If this is a mono effect, the vector will have size 2 in order to
//! fulfill LMMS' requirement of having stereo input and output

View File

@@ -86,20 +86,4 @@ void Lv2FxControls::changeControl() // TODO: what is that?
}
DataFile::Types Lv2FxControls::settingsType()
{
return DataFile::EffectSettings;
}
void Lv2FxControls::setNameFromFile(const QString &name)
{
effect()->setDisplayName(name);
}
} // namespace lmms

View File

@@ -60,9 +60,6 @@ private slots:
void changeControl();
private:
DataFile::Types settingsType() override;
void setNameFromFile(const QString &name) override;
friend class gui::Lv2FxControlDialog;
friend class Lv2Effect;
};

View File

@@ -196,25 +196,9 @@ QString Lv2Instrument::nodeName() const
DataFile::Types Lv2Instrument::settingsType()
{
return DataFile::InstrumentTrackSettings;
}
void Lv2Instrument::setNameFromFile(const QString &name)
{
instrumentTrack()->setName(name);
}
namespace gui
{
/*
Lv2InsView
*/

View File

@@ -97,8 +97,6 @@ private slots:
private:
QString nodeName() const override;
DataFile::Types settingsType() override;
void setNameFromFile(const QString &name) override;
#ifdef LV2_INSTRUMENT_USE_MIDI
std::array<int, NumKeys> m_runningNotes = {};