From 0969d00b1b40b046409773e6be796473dbf5d123 Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Sun, 28 Oct 2018 12:59:58 -0400 Subject: [PATCH] Comment out an unused UpdatePrefs function --- src/MixerBoard.cpp | 5 +++++ src/MixerBoard.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/MixerBoard.cpp b/src/MixerBoard.cpp index 28cd5d8a9..4f993a47c 100644 --- a/src/MixerBoard.cpp +++ b/src/MixerBoard.cpp @@ -348,6 +348,10 @@ NoteTrack *MixerTrackCluster::GetNote() const } #endif +// Old approach modified things in situ. +// However with a theme change there is so much to modify, it is easier +// to recreate. +#if 0 void MixerTrackCluster::UpdatePrefs() { this->SetBackgroundColour( theTheme.Colour( clrMedium ) ); @@ -356,6 +360,7 @@ void MixerTrackCluster::UpdatePrefs() mMeter->UpdatePrefs(); // in case meter range has changed HandleResize(); // in case prefs "/GUI/Solo" changed } +#endif void MixerTrackCluster::HandleResize() // For wxSizeEvents, update gain slider and meter. { diff --git a/src/MixerBoard.h b/src/MixerBoard.h index 81cbb1134..e284096d2 100644 --- a/src/MixerBoard.h +++ b/src/MixerBoard.h @@ -86,7 +86,7 @@ public: NoteTrack *GetNote() const; #endif - void UpdatePrefs(); + //void UpdatePrefs(); void HandleResize(); // For wxSizeEvents, update gain slider and meter.