From 925894fb8b5aa3fd6ab3bdab18dcc08d360e5dbd Mon Sep 17 00:00:00 2001 From: Lopuska Date: Sun, 15 Sep 2019 02:58:53 +0200 Subject: removed unnecessary loop the caller in fshifter is already doing the same job by putting 0 for the imaginary part --- common/alcomplex.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'common/alcomplex.cpp') 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> buffer, const double sign) void complex_hilbert(const al::span> buffer) { - std::for_each(buffer.begin(), buffer.end(), [](std::complex &c) { c.imag(0.0); }); - complex_fft(buffer, 1.0); const double inverse_size = 1.0/static_cast(buffer.size()); -- cgit v1.2.3