aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkcat <[email protected]>2019-09-14 18:34:53 -0700
committerGitHub <[email protected]>2019-09-14 18:34:53 -0700
commit1c45b1791b784fb9b70e8c6ce8a1ea158e9004ff (patch)
treeadeeeeff08772a635136fcc65079915bf97bb90d
parent6644a660e8df1dea96efa705aa01dd460a207dce (diff)
parent925894fb8b5aa3fd6ab3bdab18dcc08d360e5dbd (diff)
Merge pull request #344 from Lopuska/patch-3
removed unnecessary loop
-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());