Remove currentPatternChanged() that has no effect (#7989)

This commit is contained in:
Alex
2025-07-15 09:17:51 +02:00
committed by GitHub
parent 48f3a84206
commit 344fdd5b1f
2 changed files with 1 additions and 24 deletions

View File

@@ -98,7 +98,6 @@ public slots:
void play();
void stop();
void updateComboBox();
void currentPatternChanged();
signals:
void trackUpdated();

View File

@@ -38,12 +38,6 @@ PatternStore::PatternStore() :
TrackContainer(),
m_patternComboBoxModel(this)
{
connect(&m_patternComboBoxModel, SIGNAL(dataChanged()),
this, SLOT(currentPatternChanged()));
// we *always* want to receive updates even in case pattern actually did
// not change upon setCurrentPattern()-call
connect(&m_patternComboBoxModel, SIGNAL(dataUnchanged()),
this, SLOT(currentPatternChanged()));
setType(Type::Pattern);
}
@@ -213,22 +207,6 @@ void PatternStore::updateComboBox()
void PatternStore::currentPatternChanged()
{
// now update all track-labels (the current one has to become white, the others gray)
const TrackList& tl = Engine::getSong()->tracks();
for (Track * t : tl)
{
if (t->type() == Track::Type::Pattern)
{
t->dataChanged();
}
}
}
void PatternStore::createClipsForPattern(int pattern)
{
const TrackList& tl = tracks();
@@ -254,4 +232,4 @@ AutomatedValueMap PatternStore::automatedValuesAt(TimePos time, int clipNum) con
}
} // namespace lmms
} // namespace lmms