aboutsummaryrefslogtreecommitdiffstats
path: root/gnuradio-runtime
diff options
context:
space:
mode:
authorJosh Morman <jmorman@peratonlabs.com>2021-10-11 10:41:28 -0400
committerMartin Braun <martin@gnuradio.org>2021-10-14 00:40:16 -0700
commit0877ab86da6dbe67e60a059c6f4d14ccc1a9be91 (patch)
tree799059301b9f819401470ba66b831589e8c5e9d9 /gnuradio-runtime
parentiio: use make_block_sptr in make (diff)
downloadgnuradio-0877ab86da6dbe67e60a059c6f4d14ccc1a9be91.tar.xz
gnuradio-0877ab86da6dbe67e60a059c6f4d14ccc1a9be91.zip
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')
-rw-r--r--gnuradio-runtime/include/gnuradio/CMakeLists.txt1
-rw-r--r--gnuradio-runtime/include/gnuradio/misc.h26
-rw-r--r--gnuradio-runtime/lib/CMakeLists.txt1
-rw-r--r--gnuradio-runtime/lib/misc.cc53
-rw-r--r--gnuradio-runtime/lib/misc.h29
5 files changed, 0 insertions, 110 deletions
diff --git a/gnuradio-runtime/include/gnuradio/CMakeLists.txt b/gnuradio-runtime/include/gnuradio/CMakeLists.txt
index 9e99f6465..4de1ceb35 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 f9b7755c2..000000000
--- 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 f37b8ba24..42486de80 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 8207387cb..000000000
--- 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 67fad1b8f..000000000
--- 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 */