From b8ce808d508ac8c47718cd2278f79e14a29999a1 Mon Sep 17 00:00:00 2001 From: Timothy Schoen Date: Sat, 28 Dec 2024 15:41:40 +0100 Subject: [PATCH] Cleaned up --- Source/Dialogs/AudioSettingsPanel.h | 6 ++---- Source/Dialogs/SettingsDialog.h | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Source/Dialogs/AudioSettingsPanel.h b/Source/Dialogs/AudioSettingsPanel.h index 7fd81092e..f1a7e37a9 100644 --- a/Source/Dialogs/AudioSettingsPanel.h +++ b/Source/Dialogs/AudioSettingsPanel.h @@ -162,9 +162,8 @@ class StandaloneAudioSettingsPanel final : public SettingsDialogPanel , public Value::Listener { public: - explicit StandaloneAudioSettingsPanel(PluginProcessor* processor) - : pd(processor) - , deviceManager(*ProjectInfo::getDeviceManager()) + explicit StandaloneAudioSettingsPanel() + : deviceManager(*ProjectInfo::getDeviceManager()) , inputLevelMeter(deviceManager.getInputLevelGetter()) , outputLevelMeter(deviceManager.getOutputLevelGetter()) { @@ -428,7 +427,6 @@ class StandaloneAudioSettingsPanel final : public SettingsDialogPanel } } - PluginProcessor* pd; AudioDeviceManager& deviceManager; DeviceManagerLevelMeter inputLevelMeter; DeviceManagerLevelMeter outputLevelMeter; diff --git a/Source/Dialogs/SettingsDialog.h b/Source/Dialogs/SettingsDialog.h index 78788529e..1588f91f4 100644 --- a/Source/Dialogs/SettingsDialog.h +++ b/Source/Dialogs/SettingsDialog.h @@ -61,7 +61,7 @@ class SettingsDialog final : public Component { panels.clear(); if (ProjectInfo::isStandalone) { - panels.add(new StandaloneAudioSettingsPanel(processor)); + panels.add(new StandaloneAudioSettingsPanel()); } else { panels.add(new DAWAudioSettingsPanel(processor)); }