Unnecessary return value.
authorCarl Hetherington <cth@carlh.net>
Sun, 19 Apr 2020 19:09:21 +0000 (21:09 +0200)
committerCarl Hetherington <cth@carlh.net>
Sun, 19 Apr 2020 22:31:10 +0000 (00:31 +0200)
src/leqm-nrt.cc

index 83533e64d321266376dc57792bc5577f95961180..9b65731742872a0aec41c5c0d09c3a8ca2160bf1 100644 (file)
@@ -141,12 +141,11 @@ private:
                return stsum / nsamples;
        }
 
-       int accumulate_ch(std::vector<double>& ch_accumulator, std::vector<double> const& input_channel, int nsamples) const
+       void accumulate_ch(std::vector<double>& ch_accumulator, std::vector<double> const& input_channel, int nsamples) const
        {
                for (auto i = 0; i < nsamples; i++) {
                        ch_accumulator[i] += input_channel[i];
                }
-               return 0;
        }
 
        std::vector<double> rectify(std::vector<double> const& input) const