Skip to content

Commit c36617f

Browse files
committed
Remove already present functions
1 parent 29d43e0 commit c36617f

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

modules/yup_dsp/fft/yup_FFTProcessor.cpp

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -146,24 +146,6 @@ const char* FFTProcessor::getBackendName()
146146
#endif
147147
}
148148

149-
bool FFTProcessor::isPowerOfTwo (int value) noexcept
150-
{
151-
return value > 0 && (value & (value - 1)) == 0;
152-
}
153-
154-
int FFTProcessor::nextPowerOfTwo (int value) noexcept
155-
{
156-
if (value <= 1) return 1;
157-
158-
--value;
159-
value |= value >> 1;
160-
value |= value >> 2;
161-
value |= value >> 4;
162-
value |= value >> 8;
163-
value |= value >> 16;
164-
return ++value;
165-
}
166-
167149
//==============================================================================
168150
// Private implementation
169151
void FFTProcessor::initialize()

modules/yup_dsp/fft/yup_FFTProcessor.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,6 @@ class FFTProcessor
143143
/** Returns a string describing the active FFT backend */
144144
static const char* getBackendName();
145145

146-
/** Returns true if the given size is a valid power of 2 */
147-
static bool isPowerOfTwo (int value) noexcept;
148-
149-
/** Returns the next power of 2 >= the given value */
150-
static int nextPowerOfTwo (int value) noexcept;
151-
152146
private:
153147
//==============================================================================
154148
void initialize();

0 commit comments

Comments
 (0)