diff options
author | Josh Morman <jmorman@peratonlabs.com> | 2021-10-11 10:41:28 -0400 |
---|---|---|
committer | Martin Braun <martin@gnuradio.org> | 2021-10-14 00:40:16 -0700 |
commit | 0877ab86da6dbe67e60a059c6f4d14ccc1a9be91 (patch) | |
tree | 799059301b9f819401470ba66b831589e8c5e9d9 /gnuradio-runtime/lib | |
parent | 76700a84d68fb41873168ea0e55b6832acd4efa7 (diff) |
runtime: unused remove misc.h/cc
misc.h in the public header is not implemented
misc.h in the lib/ dir is implemented but not used
Appears that all the misc can go without affecting API
Signed-off-by: Josh Morman <jmorman@peratonlabs.com>
Diffstat (limited to 'gnuradio-runtime/lib')
-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 |
3 files changed, 0 insertions, 83 deletions
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 */ |