diff options
-rw-r--r-- | gnuradio-runtime/include/gnuradio/CMakeLists.txt | 1 | ||||
-rw-r--r-- | gnuradio-runtime/include/gnuradio/misc.h | 26 | ||||
-rw-r--r-- | gnuradio-runtime/lib/CMakeLists.txt | 1 | ||||
-rw-r--r-- | gnuradio-runtime/lib/misc.cc | 53 | ||||
-rw-r--r-- | gnuradio-runtime/lib/misc.h | 29 | ||||
-rw-r--r-- | gr-digital/lib/linear_equalizer_impl.cc | 1 |
6 files changed, 0 insertions, 111 deletions
diff --git a/gnuradio-runtime/include/gnuradio/CMakeLists.txt b/gnuradio-runtime/include/gnuradio/CMakeLists.txt index 9e99f64658..4de1ceb353 100644 --- a/gnuradio-runtime/include/gnuradio/CMakeLists.txt +++ b/gnuradio-runtime/include/gnuradio/CMakeLists.txt @@ -35,7 +35,6 @@ install(FILES logger.h math.h message.h - misc.h msg_accepter.h msg_handler.h msg_queue.h diff --git a/gnuradio-runtime/include/gnuradio/misc.h b/gnuradio-runtime/include/gnuradio/misc.h deleted file mode 100644 index f9b7755c29..0000000000 --- a/gnuradio-runtime/include/gnuradio/misc.h +++ /dev/null @@ -1,26 +0,0 @@ -/* -*- c++ -*- */ -/* - * Copyright 2005 Free Software Foundation, Inc. - * - * This file is part of GNU Radio - * - * SPDX-License-Identifier: GPL-3.0-or-later - * - */ - -#ifndef INCLUDED_GR_MISC_H -#define INCLUDED_GR_MISC_H - -#include <gnuradio/api.h> -#include <gnuradio/types.h> - -GR_RUNTIME_API unsigned int gr_rounduppow2(unsigned int n); - -// FIXME should be template -GR_RUNTIME_API void gr_zero_vector(std::vector<float>& v); -GR_RUNTIME_API void gr_zero_vector(std::vector<double>& v); -GR_RUNTIME_API void gr_zero_vector(std::vector<int>& v); -GR_RUNTIME_API void gr_zero_vector(std::vector<gr_complex>& v); - - -#endif /* INCLUDED_GR_MISC_H */ diff --git a/gnuradio-runtime/lib/CMakeLists.txt b/gnuradio-runtime/lib/CMakeLists.txt index f37b8ba24e..42486de801 100644 --- a/gnuradio-runtime/lib/CMakeLists.txt +++ b/gnuradio-runtime/lib/CMakeLists.txt @@ -64,7 +64,6 @@ add_library(gnuradio-runtime local_sighandler.cc logger.cc message.cc - misc.cc msg_accepter.cc msg_handler.cc msg_queue.cc diff --git a/gnuradio-runtime/lib/misc.cc b/gnuradio-runtime/lib/misc.cc deleted file mode 100644 index 8207387cb9..0000000000 --- a/gnuradio-runtime/lib/misc.cc +++ /dev/null @@ -1,53 +0,0 @@ -/* -*- c++ -*- */ -/* - * Copyright 2005,2013 Free Software Foundation, Inc. - * - * This file is part of GNU Radio - * - * SPDX-License-Identifier: GPL-3.0-or-later - * - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include "misc.h" - -namespace gr { - -unsigned int rounduppow2(unsigned int n) -{ - int i; - for (i = 0; ((n - 1) >> i) != 0; i++) - ; - return 1 << i; -} - -// ---------------------------------------------------------------- - -void zero_vector(std::vector<float>& v) -{ - for (unsigned int i = 0; i < v.size(); i++) - v[i] = 0; -} - -void zero_vector(std::vector<double>& v) -{ - for (unsigned int i = 0; i < v.size(); i++) - v[i] = 0; -} - -void zero_vector(std::vector<int>& v) -{ - for (unsigned int i = 0; i < v.size(); i++) - v[i] = 0; -} - -void zero_vector(std::vector<gr_complex>& v) -{ - for (unsigned int i = 0; i < v.size(); i++) - v[i] = 0; -} - -} /* namespace gr */ diff --git a/gnuradio-runtime/lib/misc.h b/gnuradio-runtime/lib/misc.h deleted file mode 100644 index 67fad1b8ff..0000000000 --- a/gnuradio-runtime/lib/misc.h +++ /dev/null @@ -1,29 +0,0 @@ -/* -*- c++ -*- */ -/* - * Copyright 2005,2013 Free Software Foundation, Inc. - * - * This file is part of GNU Radio - * - * SPDX-License-Identifier: GPL-3.0-or-later - * - */ - -#ifndef INCLUDED_GR_MISC_H -#define INCLUDED_GR_MISC_H - -#include <gnuradio/api.h> -#include <gnuradio/types.h> - -namespace gr { - -GR_RUNTIME_API unsigned int rounduppow2(unsigned int n); - -// FIXME should be template -GR_RUNTIME_API void zero_vector(std::vector<float>& v); -GR_RUNTIME_API void zero_vector(std::vector<double>& v); -GR_RUNTIME_API void zero_vector(std::vector<int>& v); -GR_RUNTIME_API void zero_vector(std::vector<gr_complex>& v); - -} /* namespace gr */ - -#endif /* INCLUDED_GR_MISC_H */ diff --git a/gr-digital/lib/linear_equalizer_impl.cc b/gr-digital/lib/linear_equalizer_impl.cc index 657f5bb258..4c57415cb1 100644 --- a/gr-digital/lib/linear_equalizer_impl.cc +++ b/gr-digital/lib/linear_equalizer_impl.cc @@ -14,7 +14,6 @@ #include "linear_equalizer_impl.h" #include <gnuradio/io_signature.h> -#include <gnuradio/misc.h> #include <volk/volk.h> #include <memory> #include <vector> |