From f882a724a8b59286abb2849562844fef1af203db Mon Sep 17 00:00:00 2001 From: jatin Date: Mon, 5 Feb 2024 11:59:18 -0800 Subject: [PATCH] Remove unused variables --- src/gui/BandSplitter/BandSplitterEditor.cpp | 1 - src/gui/BandSplitter/BandSplitterEditor.h | 1 - src/gui/EQ/EQEditor.cpp | 3 +-- src/gui/EQ/EQEditor.h | 1 - src/gui/SVF/SVFEditor.cpp | 1 - src/gui/SVF/SVFEditor.h | 1 - 6 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/gui/BandSplitter/BandSplitterEditor.cpp b/src/gui/BandSplitter/BandSplitterEditor.cpp index 1eae4d9..26c36ff 100644 --- a/src/gui/BandSplitter/BandSplitterEditor.cpp +++ b/src/gui/BandSplitter/BandSplitterEditor.cpp @@ -14,7 +14,6 @@ BandSplitterEditor::BandSplitterEditor (State& pluginState, hcp, spectrumTasks), slopePicker (pluginState, *params.slope), - extraState (bandSplitterExtraState), triStateButton (pluginState) { addAndMakeVisible (bandSplitterPlot); diff --git a/src/gui/BandSplitter/BandSplitterEditor.h b/src/gui/BandSplitter/BandSplitterEditor.h index bb8e1bd..a3eef2d 100644 --- a/src/gui/BandSplitter/BandSplitterEditor.h +++ b/src/gui/BandSplitter/BandSplitterEditor.h @@ -22,7 +22,6 @@ class BandSplitterEditor : public juce::Component private: BandSplitterPlot bandSplitterPlot; ChoicePicker slopePicker; - dsp::band_splitter::ExtraState& extraState; struct TriStateButton : public juce::Button { diff --git a/src/gui/EQ/EQEditor.cpp b/src/gui/EQ/EQEditor.cpp index 3f37df6..d9a85f7 100644 --- a/src/gui/EQ/EQEditor.cpp +++ b/src/gui/EQ/EQEditor.cpp @@ -10,8 +10,7 @@ EQEditor::EQEditor (State& pluginState, dsp::eq::ExtraState& eqExtraState, const chowdsp::HostContextProvider& hcp, SpectrumAnalyserTask::PrePostPair spectrumAnalyserTasks) - : params (eqParams), - extraState (eqExtraState), + : extraState (eqExtraState), plot (pluginState, eqParams.eqParams, hcp), paramsView (pluginState, eqParams), linearPhaseButton ("Vector/arrow-right-arrow-left-solid.svg", colours::thumbColours[0], colours::linesColour), diff --git a/src/gui/EQ/EQEditor.h b/src/gui/EQ/EQEditor.h index 7325f24..7564c8b 100644 --- a/src/gui/EQ/EQEditor.h +++ b/src/gui/EQ/EQEditor.h @@ -26,7 +26,6 @@ class EQEditor : public juce::Component void mouseDown (const juce::MouseEvent& event) override; private: - dsp::eq::EQToolParams& params; dsp::eq::ExtraState& extraState; chowdsp::ScopedCallbackList callbacks; diff --git a/src/gui/SVF/SVFEditor.cpp b/src/gui/SVF/SVFEditor.cpp index 4baeee2..93f1c52 100644 --- a/src/gui/SVF/SVFEditor.cpp +++ b/src/gui/SVF/SVFEditor.cpp @@ -60,7 +60,6 @@ SVFEditor::SVFEditor (State& pluginState, std::pair spectrumAnalyserTasks) : plot (pluginState, svfParams, extraState, hcp, spectrumAnalyserTasks), paramControls (pluginState, svfParams, hcp), - extraState (extraState), keytrackButton (std::make_unique ("Vector/fad-keyboard.svg", colours::plotColour, colours::linesColour)), keytrackAttach (svfParams.keytrack, pluginState, *keytrackButton), arpLimitButton ("Vector/arrows-up-to-line-solid.svg", colours::plotColour, colours::linesColour), diff --git a/src/gui/SVF/SVFEditor.h b/src/gui/SVF/SVFEditor.h index b96d743..16c903e 100644 --- a/src/gui/SVF/SVFEditor.h +++ b/src/gui/SVF/SVFEditor.h @@ -23,7 +23,6 @@ class SVFEditor : public juce::Component SVFPlot plot; SVFParamControls paramControls; std::unique_ptr bottomBar; - dsp::svf::ExtraState& extraState; std::unique_ptr keytrackButton; chowdsp::ButtonAttachment keytrackAttach;