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/x300/x300_eth_mgr.cpp | 1 - host/lib/usrp/x300/x300_radio_control.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'host/lib/usrp/x300') 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