diff options
author | Lopuska <[email protected]> | 2019-09-15 02:58:53 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2019-09-15 02:58:53 +0200 |
commit | 925894fb8b5aa3fd6ab3bdab18dcc08d360e5dbd (patch) | |
tree | 50bfa174814901ace3cb70c72394cd8a36ef650a /common | |
parent | 4e8caea97e7164b53fca31802cad7e1160930ae5 (diff) |
removed unnecessary loop
the caller in fshifter is already doing the same job by putting 0 for the imaginary part
Diffstat (limited to 'common')
-rw-r--r-- | common/alcomplex.cpp | 2 |
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()); |