diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-06-10 23:15:22 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-11-26 11:49:08 -0800 |
commit | 2ed94af7726e0f22e765950618ae87bb507e773a (patch) | |
tree | d3db840c542f8bb31cd36e843bdfb3e742d902c8 /host/examples/benchmark_rate.cpp | |
parent | d94140a4129d6b2153b15860eeb2406672ebb414 (diff) | |
download | uhd-2ed94af7726e0f22e765950618ae87bb507e773a.tar.gz uhd-2ed94af7726e0f22e765950618ae87bb507e773a.tar.bz2 uhd-2ed94af7726e0f22e765950618ae87bb507e773a.zip |
uhd: Remove deprecated objects and methods
This removes the following symbols:
- otw_type_t
- clock_config_t
- Any functions that use those symbols
- Non-standard args from examples (e.g., --total-time is deprecated in
favour of --duration)
Diffstat (limited to 'host/examples/benchmark_rate.cpp')
-rw-r--r-- | host/examples/benchmark_rate.cpp | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/host/examples/benchmark_rate.cpp b/host/examples/benchmark_rate.cpp index 539958ede..dd67ebf3c 100644 --- a/host/examples/benchmark_rate.cpp +++ b/host/examples/benchmark_rate.cpp @@ -300,7 +300,7 @@ int UHD_SAFE_MAIN(int argc, char* argv[]) double rx_rate, tx_rate; std::string rx_otw, tx_otw; std::string rx_cpu, tx_cpu; - std::string mode, ref, pps; + std::string ref, pps; std::string channel_list, rx_channel_list, tx_channel_list; bool random_nsamps = false; std::atomic<bool> burst_timer_elapsed(false); @@ -323,7 +323,6 @@ int UHD_SAFE_MAIN(int argc, char* argv[]) ("tx_cpu", po::value<std::string>(&tx_cpu)->default_value("fc32"), "specify the host/cpu sample mode for TX") ("ref", po::value<std::string>(&ref), "clock reference (internal, external, mimo, gpsdo)") ("pps", po::value<std::string>(&pps), "PPS source (internal, external, mimo, gpsdo)") - ("mode", po::value<std::string>(&mode), "DEPRECATED - use \"ref\" and \"pps\" instead (none, mimo)") ("random", "Run with random values of samples in send() and recv() to stress-test the I/O.") ("channels", po::value<std::string>(&channel_list)->default_value("0"), "which channel(s) to use (specify \"0\", \"1\", \"0,1\", etc)") ("rx_channels", po::value<std::string>(&rx_channel_list), "which RX channel(s) to use (specify \"0\", \"1\", \"0,1\", etc)") @@ -359,20 +358,6 @@ int UHD_SAFE_MAIN(int argc, char* argv[]) random_nsamps = true; } - if (vm.count("mode")) { - if (vm.count("pps") or vm.count("ref")) { - std::cout << "ERROR: The \"mode\" parameter cannot be used with the \"ref\" " - "and \"pps\" parameters.\n" - << std::endl; - return -1; - } else if (mode == "mimo") { - ref = pps = "mimo"; - std::cout << "The use of the \"mode\" parameter is deprecated. Please use " - "\"ref\" and \"pps\" parameters instead\n" - << std::endl; - } - } - // create a usrp device std::cout << std::endl; uhd::device_addrs_t device_addrs = uhd::device::find(args, uhd::device::USRP); |