From f96b8e7059b53958fa5fa8263160f26174a3d1b9 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Sat, 4 Jun 2022 09:52:22 +0200 Subject: usrp2: Remove unused code segments This fixes compiler warnings under Clang12. --- host/lib/usrp/usrp2/io_impl.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'host/lib/usrp/usrp2') diff --git a/host/lib/usrp/usrp2/io_impl.cpp b/host/lib/usrp/usrp2/io_impl.cpp index a966f91ea..c58787e3e 100644 --- a/host/lib/usrp/usrp2/io_impl.cpp +++ b/host/lib/usrp/usrp2/io_impl.cpp @@ -362,9 +362,6 @@ void usrp2_impl::update_rx_subdev_spec( // compute the new occupancy and resize _mbc[which_mb].rx_chan_occ = spec.size(); - size_t nchan = 0; - for (const std::string& mb : _mbc.keys()) - nchan += _mbc[mb].rx_chan_occ; } void usrp2_impl::update_tx_subdev_spec( @@ -385,9 +382,6 @@ void usrp2_impl::update_tx_subdev_spec( // compute the new occupancy and resize _mbc[which_mb].tx_chan_occ = spec.size(); - size_t nchan = 0; - for (const std::string& mb : _mbc.keys()) - nchan += _mbc[mb].tx_chan_occ; } /*********************************************************************** -- cgit v1.2.3