diff --git a/include/audacity/EffectInterface.h b/include/audacity/EffectInterface.h index 00ed73b7a..a4f14357a 100755 --- a/include/audacity/EffectInterface.h +++ b/include/audacity/EffectInterface.h @@ -123,8 +123,6 @@ public: virtual NumericFormatSymbol GetDurationFormat() = 0; virtual void SetDuration(double seconds) = 0; - virtual void Preview() = 0; - // Preset handling virtual RegistryPath GetUserPresetsGroup(const RegistryPath & name) = 0; virtual RegistryPath GetCurrentSettingsGroup() = 0; diff --git a/src/effects/Effect.cpp b/src/effects/Effect.cpp index ce94e2947..9ab545591 100644 --- a/src/effects/Effect.cpp +++ b/src/effects/Effect.cpp @@ -728,11 +728,6 @@ void Effect::SetDuration(double seconds) return; } -void Effect::Preview() -{ - Preview(false); -} - RegistryPath Effect::GetUserPresetsGroup(const RegistryPath & name) { RegistryPath group = wxT("UserPresets"); diff --git a/src/effects/Effect.h b/src/effects/Effect.h index 6b8e7b5ed..3942fa3a3 100644 --- a/src/effects/Effect.h +++ b/src/effects/Effect.h @@ -179,8 +179,6 @@ class AUDACITY_DLL_API Effect /* not final */ : public wxEvtHandler, virtual NumericFormatSymbol GetSelectionFormat() /* not override? */; // time format in Selection toolbar void SetDuration(double duration) override; - void Preview() override; - RegistryPath GetUserPresetsGroup(const RegistryPath & name) override; RegistryPath GetCurrentSettingsGroup() override; RegistryPath GetFactoryDefaultsGroup() override; diff --git a/src/effects/NoiseReduction.cpp b/src/effects/NoiseReduction.cpp index b2529701d..71291f6f9 100644 --- a/src/effects/NoiseReduction.cpp +++ b/src/effects/NoiseReduction.cpp @@ -1687,7 +1687,7 @@ void EffectNoiseReduction::Dialog::OnPreview(wxCommandEvent & WXUNUSED(event)) *m_pSettings = mTempSettings; m_pSettings->mDoProfile = false; - m_pEffect->Preview(); + m_pEffect->Preview( false ); } void EffectNoiseReduction::Dialog::OnReduceNoise( wxCommandEvent & WXUNUSED(event)) diff --git a/src/effects/NoiseRemoval.cpp b/src/effects/NoiseRemoval.cpp index 576265f7c..fd2a6c790 100644 --- a/src/effects/NoiseRemoval.cpp +++ b/src/effects/NoiseRemoval.cpp @@ -689,7 +689,7 @@ void NoiseRemovalDialog::OnPreview(wxCommandEvent & WXUNUSED(event)) m_pEffect->mDoProfile = oldDoProfile; } ); - m_pEffect->Preview(); + m_pEffect->Preview( false ); } void NoiseRemovalDialog::OnRemoveNoise( wxCommandEvent & WXUNUSED(event))