aboutsummaryrefslogtreecommitdiffstats
path: root/libtests
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-01-26 19:23:54 +0100
committerJay Berkenbilt <ejb@ql.org>2022-01-30 19:11:03 +0100
commit901e3e4fbfb22566c44c5ab305c93f70c7b0aa49 (patch)
treea857731de942d182075941d098c8e1396272deab /libtests
parent700dfa40d3d2c5b60bf5937f74c0ab59561115f8 (diff)
downloadqpdf-901e3e4fbfb22566c44c5ab305c93f70c7b0aa49.tar.zst
QPDFArgParser: remove unused copyFromOtherTable
This was used, but it no longer is, so let's not keep the extra complexity around.
Diffstat (limited to 'libtests')
-rw-r--r--libtests/arg_parser.cc7
-rw-r--r--libtests/libtests.testcov2
-rw-r--r--libtests/qtest/arg_parser.test1
-rw-r--r--libtests/qtest/arg_parser/args-18.out2
-rw-r--r--libtests/qtest/arg_parser/completion-sheep.out1
-rw-r--r--libtests/qtest/arg_parser/exceptions.out2
6 files changed, 0 insertions, 15 deletions
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");
});
diff --git a/libtests/libtests.testcov b/libtests/libtests.testcov
index 907e6579..444f15bb 100644
--- a/libtests/libtests.testcov
+++ b/libtests/libtests.testcov
@@ -52,8 +52,6 @@ QPDFArgParser help option 0
QPDFArgParser positional 0
QPDFArgParser unrecognized 0
QPDFArgParser complete choices 0
-QPDFArgParser copy from unknown 0
-QPDFArgParser copy unknown 0
QPDFArgParser add reserved help topic 0
QPDFArgParser add existing topic 0
QPDFArgParser add to unknown topic 0
diff --git a/libtests/qtest/arg_parser.test b/libtests/qtest/arg_parser.test
index 5079289a..abaf4d29 100644
--- a/libtests/qtest/arg_parser.test
+++ b/libtests/qtest/arg_parser.test
@@ -79,7 +79,6 @@ my @arg_tests = (
['@quack-xyz --', 0], # 15
['--salad', 2], # 16
['--salad=spinach', 0], # 17
- ['--sheep --ewe --', 0], # 18
);
for (my $i = 0; $i < scalar(@arg_tests); ++$i)
diff --git a/libtests/qtest/arg_parser/args-18.out b/libtests/qtest/arg_parser/args-18.out
deleted file mode 100644
index 094076f4..00000000
--- a/libtests/qtest/arg_parser/args-18.out
+++ /dev/null
@@ -1,2 +0,0 @@
-you
-total quacks: 0
diff --git a/libtests/qtest/arg_parser/completion-sheep.out b/libtests/qtest/arg_parser/completion-sheep.out
index 15673934..7605c94b 100644
--- a/libtests/qtest/arg_parser/completion-sheep.out
+++ b/libtests/qtest/arg_parser/completion-sheep.out
@@ -1,3 +1,2 @@
---ewe
!--potato
!--ram
diff --git a/libtests/qtest/arg_parser/exceptions.out b/libtests/qtest/arg_parser/exceptions.out
index eb8dbe8a..c40a5418 100644
--- a/libtests/qtest/arg_parser/exceptions.out
+++ b/libtests/qtest/arg_parser/exceptions.out
@@ -2,8 +2,6 @@ duplicate handler: QPDFArgParser: adding a duplicate handler for option potato i
duplicate handler: QPDFArgParser: adding a duplicate handler for option ram in baaa option table
duplicate table: QPDFArgParser: registering already registered option table baaa
unknown table: QPDFArgParser: selecting unregistered option table aardvark
-copy from unknown table: QPDFArgParser: attempt to copy from unknown table two
-copy unknown from other table: QPDFArgParser: attempt to copy unknown argument two from table baaa
add existing help topic: QPDFArgParser: topic baaa has already been added
add reserved help topic: QPDFArgParser: can't register reserved help topic all
add to unknown topic: QPDFArgParser: unable to add option --new to unknown help topic oops