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. --- libqpdf/QPDFArgParser.cc | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'libqpdf') diff --git a/libqpdf/QPDFArgParser.cc b/libqpdf/QPDFArgParser.cc index 33d50a10..c423c7d3 100644 --- a/libqpdf/QPDFArgParser.cc +++ b/libqpdf/QPDFArgParser.cc @@ -176,29 +176,6 @@ QPDFArgParser::addInvalidChoiceHandler( oe.invalid_choice_handler = handler; } -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) { -- cgit v1.2.3-70-g09d2