From 901e3e4fbfb22566c44c5ab305c93f70c7b0aa49 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Wed, 26 Jan 2022 13:23:54 -0500 Subject: QPDFArgParser: remove unused copyFromOtherTable This was used, but it no longer is, so let's not keep the extra complexity around. --- libtests/arg_parser.cc | 7 ------- 1 file changed, 7 deletions(-) (limited to 'libtests/arg_parser.cc') diff --git a/libtests/arg_parser.cc b/libtests/arg_parser.cc index 340bd8d4..602a0f3f 100644 --- a/libtests/arg_parser.cc +++ b/libtests/arg_parser.cc @@ -67,7 +67,6 @@ ArgParser::initOptions() ap.selectMainOptionTable(); ap.addBare("sheep", [this](){ this->ap.selectOptionTable("sheep"); }); ap.registerOptionTable("sheep", nullptr); - ap.copyFromOtherTable("ewe", "baaa"); ap.addHelpFooter("For more help, read the manual.\n"); ap.addHelpTopic( @@ -190,12 +189,6 @@ ArgParser::test_exceptions() err("unknown table", [this]() { ap.selectOptionTable("aardvark"); }); - err("copy from unknown table", [this]() { - ap.copyFromOtherTable("one", "two"); - }); - err("copy unknown from other table", [this]() { - ap.copyFromOtherTable("two", "baaa"); - }); err("add existing help topic", [this]() { ap.addHelpTopic("baaa", "potato", "salad"); }); -- cgit v1.2.3-54-g00ecf