diff options
author | Martin Braun <martin.braun@ettus.com> | 2021-01-08 13:27:52 +0100 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-03-04 08:18:41 -0600 |
commit | 6da4e7622be4f70956a755229bbe90551f8e5f1a (patch) | |
tree | b772ebe7dbe7c1fef21ce47d783c424a09863ea2 /host/tests/rfnoc_block_tests | |
parent | 07f591aea9d3849a25e50428aeeb83d7aa641b7e (diff) | |
download | uhd-6da4e7622be4f70956a755229bbe90551f8e5f1a.tar.gz uhd-6da4e7622be4f70956a755229bbe90551f8e5f1a.tar.bz2 uhd-6da4e7622be4f70956a755229bbe90551f8e5f1a.zip |
tests: Remove unused constants
This fixes some clang warnings.
Diffstat (limited to 'host/tests/rfnoc_block_tests')
5 files changed, 0 insertions, 18 deletions
diff --git a/host/tests/rfnoc_block_tests/addsub_block_test.cpp b/host/tests/rfnoc_block_tests/addsub_block_test.cpp index 23bdbde20..982790024 100644 --- a/host/tests/rfnoc_block_tests/addsub_block_test.cpp +++ b/host/tests/rfnoc_block_tests/addsub_block_test.cpp @@ -25,9 +25,6 @@ noc_block_base::make_args_t::~make_args_t() = default; * object, all of which are accessible to the test case. The instance of the * object is destroyed at the end of each test case. */ -constexpr size_t MAX_NUM_COEFFS = 3000; -constexpr size_t DEFAULT_MTU = 8000; - struct addsub_block_fixture { addsub_block_fixture() diff --git a/host/tests/rfnoc_block_tests/moving_average_block_test.cpp b/host/tests/rfnoc_block_tests/moving_average_block_test.cpp index 9957dcbc1..e492dde07 100644 --- a/host/tests/rfnoc_block_tests/moving_average_block_test.cpp +++ b/host/tests/rfnoc_block_tests/moving_average_block_test.cpp @@ -21,12 +21,6 @@ using namespace uhd::rfnoc; // Redeclare this here, since it's only defined outside of UHD_API noc_block_base::make_args_t::~make_args_t() = default; -namespace { - -constexpr size_t DEFAULT_MTU = 8000; - -} // namespace - BOOST_AUTO_TEST_CASE(test_moving_average_block) { node_accessor_t node_accessor{}; diff --git a/host/tests/rfnoc_block_tests/null_block_test.cpp b/host/tests/rfnoc_block_tests/null_block_test.cpp index b6eddd62a..f21f00c2c 100644 --- a/host/tests/rfnoc_block_tests/null_block_test.cpp +++ b/host/tests/rfnoc_block_tests/null_block_test.cpp @@ -20,12 +20,6 @@ using namespace uhd::rfnoc; // Redeclare this here, since it's only defined outside of UHD_API noc_block_base::make_args_t::~make_args_t() = default; -namespace { - -constexpr size_t DEFAULT_MTU = 8000; - -} // namespace - BOOST_AUTO_TEST_CASE(test_null_block) { node_accessor_t node_accessor{}; diff --git a/host/tests/rfnoc_block_tests/vector_iir_block_test.cpp b/host/tests/rfnoc_block_tests/vector_iir_block_test.cpp index 8721d7bb5..ce0473e19 100644 --- a/host/tests/rfnoc_block_tests/vector_iir_block_test.cpp +++ b/host/tests/rfnoc_block_tests/vector_iir_block_test.cpp @@ -36,7 +36,6 @@ class vector_iir_mock_reg_iface_t : public mock_reg_iface_t { public: vector_iir_mock_reg_iface_t(size_t num_chans, uint16_t max_delay) - : _num_chans(num_chans) { for (size_t chan = 0; chan < num_chans; chan++) { _max_delays.push_back(max_delay); @@ -65,7 +64,6 @@ public: } private: - const size_t _num_chans; std::vector<uint16_t> _max_delays; std::vector<uint16_t> _delays; }; diff --git a/host/tests/rfnoc_block_tests/window_block_test.cpp b/host/tests/rfnoc_block_tests/window_block_test.cpp index a8fcb5db0..26978464b 100644 --- a/host/tests/rfnoc_block_tests/window_block_test.cpp +++ b/host/tests/rfnoc_block_tests/window_block_test.cpp @@ -101,7 +101,6 @@ private: * case. The instance of the object is destroyed at the end of each test * case. */ -constexpr size_t MAX_LEN = 3000; constexpr size_t DEFAULT_MTU = 8000; constexpr size_t NUM_CHANS = 4; static const std::vector<size_t> MAX_LENS{3000, 2500, 15, 666}; |