aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFArgParser.cc
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 /libqpdf/QPDFArgParser.cc
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 'libqpdf/QPDFArgParser.cc')
-rw-r--r--libqpdf/QPDFArgParser.cc23
1 files changed, 0 insertions, 23 deletions
diff --git a/libqpdf/QPDFArgParser.cc b/libqpdf/QPDFArgParser.cc
index 33d50a10..c423c7d3 100644
--- a/libqpdf/QPDFArgParser.cc
+++ b/libqpdf/QPDFArgParser.cc
@@ -177,29 +177,6 @@ QPDFArgParser::addInvalidChoiceHandler(
}
void
-QPDFArgParser::copyFromOtherTable(std::string const& arg,
- std::string const& other_table)
-{
- if (! this->m->option_tables.count(other_table))
- {
- QTC::TC("libtests", "QPDFArgParser copy from unknown");
- throw std::logic_error(
- "QPDFArgParser: attempt to copy from unknown table " +
- other_table);
- }
- auto& ot = this->m->option_tables[other_table];
- if (! ot.count(arg))
- {
- QTC::TC("libtests", "QPDFArgParser copy unknown");
- throw std::logic_error(
- "QPDFArgParser: attempt to copy unknown argument " + arg +
- " from table " + other_table);
- }
- OptionEntry& oe = registerArg(arg);
- oe = ot[arg];
-}
-
-void
QPDFArgParser::addFinalCheck(bare_arg_handler_t handler)
{
this->m->final_check_handler = handler;