mirror of
https://codeberg.org/tenacityteam/tenacity
synced 2025-09-26 00:06:32 +02:00
remove unused EXPERIMENTAL_FFT_Y_GRID code
Signed-off-by: Hailey Somerville <hailey@hails.org>
This commit is contained in:
committed by
Avery King
parent
b340835d4f
commit
be1fd954c1
@@ -59,11 +59,6 @@ IntSetting SpectrumRange{
|
||||
L"/Spectrum/Range", 80 };
|
||||
IntSetting SpectrumZeroPaddingFactor{
|
||||
L"/Spectrum/ZeroPaddingFactor", 2 };
|
||||
|
||||
#ifdef EXPERIMENTAL_FFT_Y_GRID
|
||||
BoolSetting SpectrumYGrid{
|
||||
L"/Spectrum/FFTYGrid", false};
|
||||
#endif
|
||||
}
|
||||
|
||||
SpectrogramSettings::Globals::Globals()
|
||||
@@ -147,9 +142,6 @@ SpectrogramSettings::SpectrogramSettings(const SpectrogramSettings &other)
|
||||
, spectralSelection(other.spectralSelection)
|
||||
#endif
|
||||
, algorithm(other.algorithm)
|
||||
#ifdef EXPERIMENTAL_FFT_Y_GRID
|
||||
, fftYGrid(other.fftYGrid)
|
||||
#endif
|
||||
|
||||
// Do not copy these!
|
||||
, hFFT{}
|
||||
@@ -176,9 +168,6 @@ SpectrogramSettings &SpectrogramSettings::operator= (const SpectrogramSettings &
|
||||
spectralSelection = other.spectralSelection;
|
||||
#endif
|
||||
algorithm = other.algorithm;
|
||||
#ifdef EXPERIMENTAL_FFT_Y_GRID
|
||||
fftYGrid = other.fftYGrid;
|
||||
#endif
|
||||
|
||||
// Invalidate the caches
|
||||
DestroyWindows();
|
||||
@@ -362,10 +351,6 @@ void SpectrogramSettings::LoadPrefs()
|
||||
|
||||
algorithm = static_cast<Algorithm>(SpectrumAlgorithm.Read());
|
||||
|
||||
#ifdef EXPERIMENTAL_FFT_Y_GRID
|
||||
fftYGrid = SpectrumYGrid.Read();
|
||||
#endif //EXPERIMENTAL_FFT_Y_GRID
|
||||
|
||||
// Enforce legal values
|
||||
Validate(true);
|
||||
|
||||
@@ -400,10 +385,6 @@ void SpectrogramSettings::SavePrefs()
|
||||
#endif
|
||||
|
||||
SpectrumAlgorithm.Write(static_cast<int>(algorithm));
|
||||
|
||||
#ifdef EXPERIMENTAL_FFT_Y_GRID
|
||||
SpectrumYGrid.Write(fftYGrid);
|
||||
#endif //EXPERIMENTAL_FFT_Y_GRID
|
||||
}
|
||||
|
||||
// This is a temporary hack until SpectrogramSettings gets fully integrated
|
||||
@@ -448,11 +429,6 @@ void SpectrogramSettings::UpdatePrefs()
|
||||
if (algorithm == defaults().algorithm)
|
||||
algorithm = static_cast<Algorithm>(SpectrumAlgorithm.Read());
|
||||
|
||||
#ifdef EXPERIMENTAL_FFT_Y_GRID
|
||||
if (fftYGrid == defaults().fftYGrid)
|
||||
fftYGrid = SpectrumYGrid.Read();
|
||||
#endif //EXPERIMENTAL_FFT_Y_GRID
|
||||
|
||||
// Enforce legal values
|
||||
Validate(true);
|
||||
}
|
||||
|
@@ -182,10 +182,6 @@ public:
|
||||
};
|
||||
Algorithm algorithm;
|
||||
|
||||
#ifdef EXPERIMENTAL_FFT_Y_GRID
|
||||
bool fftYGrid;
|
||||
#endif //EXPERIMENTAL_FFT_Y_GRID
|
||||
|
||||
// Following fields are derived from preferences.
|
||||
|
||||
// Variables used for computing the spectrum
|
||||
|
Reference in New Issue
Block a user