summaryrefslogtreecommitdiff
path: root/gr-fft
diff options
context:
space:
mode:
authorThomas Habets <thomas@habets.se>2020-01-03 18:33:19 +0000
committerMartin Braun <martin.braun@ettus.com>2020-01-04 23:35:20 -0800
commit33d580788eae7ba3a5ff0d133cdf0c17794fa372 (patch)
treed31e50211e54e3fae08e570f8b67db689a4a5b24 /gr-fft
parenteae138c160a6fb2834eb5eda392d0ed25fbc48d0 (diff)
gr-fft: Remove malloc_{float,double}
volk::vector<> is a better choice.
Diffstat (limited to 'gr-fft')
-rw-r--r--gr-fft/include/gnuradio/fft/fft.h8
-rw-r--r--gr-fft/lib/fft.cc10
2 files changed, 0 insertions, 18 deletions
diff --git a/gr-fft/include/gnuradio/fft/fft.h b/gr-fft/include/gnuradio/fft/fft.h
index 749a5e874c..a553e6c72b 100644
--- a/gr-fft/include/gnuradio/fft/fft.h
+++ b/gr-fft/include/gnuradio/fft/fft.h
@@ -41,14 +41,6 @@ namespace fft {
*/
FFT_API gr_complex* malloc_complex(int size);
-/*! \brief Helper function for allocating float* buffers
- */
-FFT_API float* malloc_float(int size);
-
-/*! \brief Helper function for allocating double* buffers
- */
-FFT_API double* malloc_double(int size);
-
/*! \brief Helper function for freeing fft buffers
* TODO: Remove once the single user of this stops using it.
*/
diff --git a/gr-fft/lib/fft.cc b/gr-fft/lib/fft.cc
index c48fb6dc47..c9c9f31990 100644
--- a/gr-fft/lib/fft.cc
+++ b/gr-fft/lib/fft.cc
@@ -65,16 +65,6 @@ gr_complex* malloc_complex(int size)
return (gr_complex*)volk_malloc(sizeof(gr_complex) * size, volk_get_alignment());
}
-float* malloc_float(int size)
-{
- return (float*)volk_malloc(sizeof(float) * size, volk_get_alignment());
-}
-
-double* malloc_double(int size)
-{
- return (double*)volk_malloc(sizeof(double) * size, volk_get_alignment());
-}
-
void free(void* b) { volk_free(b); }
boost::mutex& planner::mutex()