From 747f5e8bc00c898b62c7153deea3666c082d317a Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 26 Jan 2016 20:32:41 +0100 Subject: math: Removed now superfluous constants. Removes a lot of compiler warnings --- host/include/uhd/utils/math.hpp | 13 ------------- host/lib/usrp/cores/dsp_core_utils.cpp | 1 - 2 files changed, 14 deletions(-) diff --git a/host/include/uhd/utils/math.hpp b/host/include/uhd/utils/math.hpp index 088983167..0b35f1f17 100644 --- a/host/include/uhd/utils/math.hpp +++ b/host/include/uhd/utils/math.hpp @@ -31,19 +31,6 @@ namespace uhd { */ namespace math { - /*! - * Numeric limits of certain types. - * - * There are many sources for getting these, including std::numeric_limits, - * ``, ``, and Boost. The `` option is preferable as it - * gives us fixed-width constants, but unfortunately is new as of C++11. - * Since this isn't available on many systems, we need to use one of the - * other options. We will use the Boost option, here, since we use Boost - * data types for portability across UHD. - */ - static const boost::int32_t BOOST_INT32_MAX = boost::numeric::bounds::highest(); - static const boost::int32_t BOOST_INT32_MIN = boost::numeric::bounds::lowest(); - /*! * Define epsilon values for floating point comparisons. * diff --git a/host/lib/usrp/cores/dsp_core_utils.cpp b/host/lib/usrp/cores/dsp_core_utils.cpp index f6f56a16b..aea809ae8 100644 --- a/host/lib/usrp/cores/dsp_core_utils.cpp +++ b/host/lib/usrp/cores/dsp_core_utils.cpp @@ -61,7 +61,6 @@ void get_freq_and_freq_word( freq_word = int32_t(boost::math::round((freq / tick_rate) * scale_factor)); } - //program the frequency word into the device DSP actual_freq = (double(freq_word) / scale_factor) * tick_rate; } -- cgit v1.2.3