From 01e65903c2e17ead3318b7ca7a3da7c8a906a3a0 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 11 Jan 2021 10:50:00 +0100 Subject: lib: Remove unused constants The constants were either commented out, when their value is still useful to the reader, or removed if not. --- host/lib/usrp/mpmd/mpmd_link_if_ctrl_udp.cpp | 1 - host/lib/usrp/x300/x300_eth_mgr.cpp | 1 - host/lib/usrp/x300/x300_radio_control.cpp | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) (limited to 'host/lib/usrp') diff --git a/host/lib/usrp/mpmd/mpmd_link_if_ctrl_udp.cpp b/host/lib/usrp/mpmd/mpmd_link_if_ctrl_udp.cpp index dcb5d3473..d5be57cd9 100644 --- a/host/lib/usrp/mpmd/mpmd_link_if_ctrl_udp.cpp +++ b/host/lib/usrp/mpmd/mpmd_link_if_ctrl_udp.cpp @@ -31,7 +31,6 @@ namespace { //! Maximum CHDR packet size in bytes const size_t MPMD_10GE_DATA_FRAME_MAX_SIZE = 7972; const size_t MPMD_1GE_DATA_FRAME_MAX_SIZE = 1472; -const size_t MPMD_1GE_ASYNCMSG_FRAME_MAX_SIZE = 1472; //! Number of send/recv frames const size_t MPMD_ETH_NUM_FRAMES = 32; diff --git a/host/lib/usrp/x300/x300_eth_mgr.cpp b/host/lib/usrp/x300/x300_eth_mgr.cpp index d7b8b15c4..f428fc98e 100644 --- a/host/lib/usrp/x300/x300_eth_mgr.cpp +++ b/host/lib/usrp/x300/x300_eth_mgr.cpp @@ -44,7 +44,6 @@ namespace asio = boost::asio; namespace { -constexpr unsigned int X300_UDP_RESERVED_FRAME_SIZE = 64; constexpr size_t XGE_DATA_FRAME_SEND_SIZE = x300::DATA_FRAME_MAX_SIZE; constexpr size_t XGE_DATA_FRAME_RECV_SIZE = x300::DATA_FRAME_MAX_SIZE; constexpr size_t GE_DATA_FRAME_SEND_SIZE = 1472; diff --git a/host/lib/usrp/x300/x300_radio_control.cpp b/host/lib/usrp/x300/x300_radio_control.cpp index cdac71d52..893a99942 100644 --- a/host/lib/usrp/x300/x300_radio_control.cpp +++ b/host/lib/usrp/x300/x300_radio_control.cpp @@ -96,7 +96,7 @@ static constexpr uint32_t SR_DB_GPIO = PERIPH_BASE + 192 * PERIPH_REG_OFFSET; static constexpr uint32_t RB_MISC_IO = PERIPH_BASE + 16 * PERIPH_REG_OFFSET; static constexpr uint32_t RB_SPI = PERIPH_BASE + 17 * PERIPH_REG_OFFSET; -static constexpr uint32_t RB_LEDS = PERIPH_BASE + 18 * PERIPH_REG_OFFSET; +// static constexpr uint32_t RB_LEDS = PERIPH_BASE + 18 * PERIPH_REG_OFFSET; static constexpr uint32_t RB_DB_GPIO = PERIPH_BASE + 19 * PERIPH_REG_OFFSET; static constexpr uint32_t RB_FP_GPIO = PERIPH_BASE + 20 * PERIPH_REG_OFFSET; -- cgit v1.2.3