catchunks: remove previously deprecated options

Change-Id: I0a7154dfd8879337f40524261fc854807dbc3d22
This commit is contained in:
Davide Pesavento committed 2019-07-26 19:00:20 -04:00
1 parent c5243b40f4
commit 6752d943ef
1 file changed
+2 -15
+2 -15
View File
@@ -132,17 +132,12 @@ main(int argc, char* argv[])
hiddenDesc.add_options()
("ndn-name,n", po::value<std::string>(&uri), "NDN name of the requested content");
po::options_description deprecatedDesc;
deprecatedDesc.add_options()
("discover-version,d", po::value<std::string>(), "version discovery algorithm to use")
("discovery-timeout,t", po::value<int64_t>(), "discovery timeout (in milliseconds)");
po::options_description optDesc;
optDesc.add(visibleDesc).add(hiddenDesc);
po::positional_options_description p;
p.add("ndn-name", -1);
po::options_description optDesc;
optDesc.add(visibleDesc).add(hiddenDesc).add(deprecatedDesc);
po::variables_map vm;
try {
po::store(po::command_line_parser(argc, argv).options(optDesc).positional(p).run(), vm);
@@ -163,14 +158,6 @@ main(int argc, char* argv[])
return 0;
}
if (vm.count("discover-version") > 0) {
std::cerr << "WARNING: -d option is deprecated and will be removed in the near future" << std::endl;
}
if (vm.count("discovery-timeout") > 0) {
std::cerr << "WARNING: -t option is deprecated and will be removed in the near future" << std::endl;
}
if (vm.count("version") > 0) {
std::cout << "ndncatchunks " << tools::VERSION << std::endl;
return 0;