mirror of
https://github.com/EttusResearch/uhd.git
synced 2026-10-25 17:36:10 +00:00
usrp2: Remove unused code segments
This fixes compiler warnings under Clang12.
This commit is contained in:
parent
8f2a9a9186
commit
f96b8e7059
@ -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;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
||||
Loading…
Reference in New Issue
Block a user