aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLopuska <[email protected]>2019-09-15 02:58:53 +0200
committerGitHub <[email protected]>2019-09-15 02:58:53 +0200
commit925894fb8b5aa3fd6ab3bdab18dcc08d360e5dbd (patch)
tree50bfa174814901ace3cb70c72394cd8a36ef650a
parent4e8caea97e7164b53fca31802cad7e1160930ae5 (diff)
removed unnecessary loop
the caller in fshifter is already doing the same job by putting 0 for the imaginary part
-rw-r--r--common/alcomplex.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/common/alcomplex.cpp b/common/alcomplex.cpp
index 71d3c5f8..f77ec203 100644
--- a/common/alcomplex.cpp
+++ b/common/alcomplex.cpp
@@ -55,8 +55,6 @@ void complex_fft(const al::span<std::complex<double>> buffer, const double sign)
void complex_hilbert(const al::span<std::complex<double>> buffer)
{
- std::for_each(buffer.begin(), buffer.end(), [](std::complex<double> &c) { c.imag(0.0); });
-
complex_fft(buffer, 1.0);
const double inverse_size = 1.0/static_cast<double>(buffer.size());