diff options
author | Marcus Müller <mmueller@gnuradio.org> | 2021-06-13 01:45:43 +0200 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2021-06-17 06:38:27 -0400 |
commit | d45392e5eb24b08e35f1fc6058999c3318b73cf9 (patch) | |
tree | 4172a8e7de05e6995fb5cb92485afea37e0a951f | |
parent | 3fe76f88d5585b62a286180265718beac5b1fb9b (diff) |
global: automatic removal of <cstdio> where unused
used command:
sed -i '/^#include.*cstdio.*$/d' $(ag -L
'\b(fscanf|sscanf|printf|sprintf|ftell|fgetpos|fseek|fsetpos|rewind|fopen|freopen|fclose|fflush|setbuf|setvbuf|fread|fwrite|fprintf|feof|ferror|perror|clearerror|rename|tmpfile|tmpnam)\b'
$(ag -l 'include.*<cstdio>' gnuradio-runtime))
Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
-rw-r--r-- | gnuradio-runtime/include/gnuradio/rpcregisterhelpers.h | 1 | ||||
-rw-r--r-- | gnuradio-runtime/lib/block_registry.cc | 1 | ||||
-rw-r--r-- | gnuradio-runtime/lib/local_sighandler.cc | 1 | ||||
-rw-r--r-- | gnuradio-runtime/lib/math/qa_fxpt.cc | 1 | ||||
-rw-r--r-- | gnuradio-runtime/lib/pagesize.cc | 1 | ||||
-rw-r--r-- | gnuradio-runtime/lib/pmt/qa_pmt_prims.cc | 1 | ||||
-rw-r--r-- | gnuradio-runtime/lib/pmt/qa_pmt_unv.cc | 1 | ||||
-rw-r--r-- | gnuradio-runtime/lib/sys_paths.cc | 1 | ||||
-rw-r--r-- | gnuradio-runtime/lib/thread/thread_body_wrapper.cc | 1 | ||||
-rw-r--r-- | gnuradio-runtime/lib/vmcircbuf.cc | 1 | ||||
-rw-r--r-- | gnuradio-runtime/lib/vmcircbuf_mmap_tmpfile.cc | 1 | ||||
-rw-r--r-- | gnuradio-runtime/lib/vmcircbuf_sysv_shm.cc | 1 | ||||
-rw-r--r-- | gnuradio-runtime/python/gnuradio/gr/bindings/rpcregisterhelpers_python.cc | 2 |
13 files changed, 1 insertions, 13 deletions
diff --git a/gnuradio-runtime/include/gnuradio/rpcregisterhelpers.h b/gnuradio-runtime/include/gnuradio/rpcregisterhelpers.h index 0277376210..376c7458f1 100644 --- a/gnuradio-runtime/include/gnuradio/rpcregisterhelpers.h +++ b/gnuradio-runtime/include/gnuradio/rpcregisterhelpers.h @@ -15,7 +15,6 @@ #include <gnuradio/rpcserver_base.h> #include <gnuradio/rpcserver_booter_base.h> #include <gnuradio/rpcserver_selector.h> -#include <cstdio> #include <sstream> // Fixes circular dependency issue before including block_registry.h diff --git a/gnuradio-runtime/lib/block_registry.cc b/gnuradio-runtime/lib/block_registry.cc index 7e19106f9d..a32c0e6801 100644 --- a/gnuradio-runtime/lib/block_registry.cc +++ b/gnuradio-runtime/lib/block_registry.cc @@ -13,7 +13,6 @@ #include <gnuradio/block_detail.h> #include <gnuradio/block_registry.h> #include <gnuradio/tpb_detail.h> -#include <cstdio> gr::block_registry global_block_registry; diff --git a/gnuradio-runtime/lib/local_sighandler.cc b/gnuradio-runtime/lib/local_sighandler.cc index d526e4903c..c3694018c8 100644 --- a/gnuradio-runtime/lib/local_sighandler.cc +++ b/gnuradio-runtime/lib/local_sighandler.cc @@ -14,7 +14,6 @@ #include "local_sighandler.h" #include <boost/format.hpp> -#include <cstdio> #include <cstring> #include <stdexcept> diff --git a/gnuradio-runtime/lib/math/qa_fxpt.cc b/gnuradio-runtime/lib/math/qa_fxpt.cc index 865d07e19e..cccb5c38df 100644 --- a/gnuradio-runtime/lib/math/qa_fxpt.cc +++ b/gnuradio-runtime/lib/math/qa_fxpt.cc @@ -17,7 +17,6 @@ #include <unistd.h> #include <boost/test/unit_test.hpp> #include <cmath> -#include <cstdio> static const float SIN_COS_TOLERANCE = 1e-5; diff --git a/gnuradio-runtime/lib/pagesize.cc b/gnuradio-runtime/lib/pagesize.cc index f76249df1c..abc26ba077 100644 --- a/gnuradio-runtime/lib/pagesize.cc +++ b/gnuradio-runtime/lib/pagesize.cc @@ -17,7 +17,6 @@ #include "pagesize.h" #include <unistd.h> -#include <cstdio> namespace gr { diff --git a/gnuradio-runtime/lib/pmt/qa_pmt_prims.cc b/gnuradio-runtime/lib/pmt/qa_pmt_prims.cc index a1220d7a90..f74dd2f7f9 100644 --- a/gnuradio-runtime/lib/pmt/qa_pmt_prims.cc +++ b/gnuradio-runtime/lib/pmt/qa_pmt_prims.cc @@ -12,7 +12,6 @@ #include <pmt/api.h> //reason: suppress warnings #include <boost/format.hpp> #include <boost/test/unit_test.hpp> -#include <cstdio> #include <cstring> #include <sstream> diff --git a/gnuradio-runtime/lib/pmt/qa_pmt_unv.cc b/gnuradio-runtime/lib/pmt/qa_pmt_unv.cc index 76ce3933bc..bd4939e256 100644 --- a/gnuradio-runtime/lib/pmt/qa_pmt_unv.cc +++ b/gnuradio-runtime/lib/pmt/qa_pmt_unv.cc @@ -13,7 +13,6 @@ #include <pmt/pmt.h> #include <boost/format.hpp> #include <boost/test/unit_test.hpp> -#include <cstdio> #include <cstring> #include <sstream> diff --git a/gnuradio-runtime/lib/sys_paths.cc b/gnuradio-runtime/lib/sys_paths.cc index 1ec46c9c40..06333ffc6e 100644 --- a/gnuradio-runtime/lib/sys_paths.cc +++ b/gnuradio-runtime/lib/sys_paths.cc @@ -8,7 +8,6 @@ */ #include <gnuradio/sys_paths.h> -#include <cstdio> //P_tmpdir (maybe) #include <cstdlib> //getenv #include <filesystem> diff --git a/gnuradio-runtime/lib/thread/thread_body_wrapper.cc b/gnuradio-runtime/lib/thread/thread_body_wrapper.cc index 0ab6f1c947..4bf87c0943 100644 --- a/gnuradio-runtime/lib/thread/thread_body_wrapper.cc +++ b/gnuradio-runtime/lib/thread/thread_body_wrapper.cc @@ -19,7 +19,6 @@ #include <csignal> #endif -#include <cstdio> namespace gr { namespace thread { diff --git a/gnuradio-runtime/lib/vmcircbuf.cc b/gnuradio-runtime/lib/vmcircbuf.cc index 1d419efaab..764e48428e 100644 --- a/gnuradio-runtime/lib/vmcircbuf.cc +++ b/gnuradio-runtime/lib/vmcircbuf.cc @@ -16,7 +16,6 @@ #include "vmcircbuf.h" #include "vmcircbuf_prefs.h" #include <boost/format.hpp> -#include <cstdio> #include <cstring> #include <stdexcept> #include <vector> diff --git a/gnuradio-runtime/lib/vmcircbuf_mmap_tmpfile.cc b/gnuradio-runtime/lib/vmcircbuf_mmap_tmpfile.cc index 2838fd4f0e..ed7547dd93 100644 --- a/gnuradio-runtime/lib/vmcircbuf_mmap_tmpfile.cc +++ b/gnuradio-runtime/lib/vmcircbuf_mmap_tmpfile.cc @@ -27,7 +27,6 @@ #include <fcntl.h> #include <boost/format.hpp> #include <cerrno> -#include <cstdio> #include <cstring> namespace gr { diff --git a/gnuradio-runtime/lib/vmcircbuf_sysv_shm.cc b/gnuradio-runtime/lib/vmcircbuf_sysv_shm.cc index ef9f568174..5c71c84cca 100644 --- a/gnuradio-runtime/lib/vmcircbuf_sysv_shm.cc +++ b/gnuradio-runtime/lib/vmcircbuf_sysv_shm.cc @@ -25,7 +25,6 @@ #endif #include "pagesize.h" #include <cerrno> -#include <cstdio> #define MAX_SYSV_SHM_ATTEMPTS 3 diff --git a/gnuradio-runtime/python/gnuradio/gr/bindings/rpcregisterhelpers_python.cc b/gnuradio-runtime/python/gnuradio/gr/bindings/rpcregisterhelpers_python.cc index 8c74a9910c..ae02aeef5a 100644 --- a/gnuradio-runtime/python/gnuradio/gr/bindings/rpcregisterhelpers_python.cc +++ b/gnuradio-runtime/python/gnuradio/gr/bindings/rpcregisterhelpers_python.cc @@ -14,7 +14,7 @@ /* BINDTOOL_GEN_AUTOMATIC(0) */ /* BINDTOOL_USE_PYGCCXML(0) */ /* BINDTOOL_HEADER_FILE(rpcregisterhelpers.h) */ -/* BINDTOOL_HEADER_FILE_HASH(28fa0d90b96f4fdf9fe7c0bb42769930) */ +/* BINDTOOL_HEADER_FILE_HASH(4bdbf7e9a737fef69c5d23e1fc43458c) */ /***********************************************************************************/ #include <pybind11/complex.h> |