From 344fdd5b1f228117a2587df3e3e833918e525a0f Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 15 Jul 2025 09:17:51 +0200 Subject: [PATCH] Remove currentPatternChanged() that has no effect (#7989) --- include/PatternStore.h | 1 - src/core/PatternStore.cpp | 24 +----------------------- 2 files changed, 1 insertion(+), 24 deletions(-) diff --git a/include/PatternStore.h b/include/PatternStore.h index 512ac7cad..0e62b183a 100644 --- a/include/PatternStore.h +++ b/include/PatternStore.h @@ -98,7 +98,6 @@ public slots: void play(); void stop(); void updateComboBox(); - void currentPatternChanged(); signals: void trackUpdated(); diff --git a/src/core/PatternStore.cpp b/src/core/PatternStore.cpp index f9c38d9bc..400f0ed53 100644 --- a/src/core/PatternStore.cpp +++ b/src/core/PatternStore.cpp @@ -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 \ No newline at end of file +} // namespace lmms