diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-01-27 12:06:03 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2021-01-27 12:06:03 +0100 |
commit | 8e758d402ba1045c7b8273f8cb1d6d8d917ca52b (patch) | |
tree | 04c5bc22912b684a41cd4cfdd5c895127ce339a4 /src/libutil/args.hh | |
parent | f15f0b8e83051cd95dacb2784b004c8272957f30 (diff) |
Remove mkFlag()
Diffstat (limited to 'src/libutil/args.hh')
-rw-r--r-- | src/libutil/args.hh | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/libutil/args.hh b/src/libutil/args.hh index b1020b101..42d8515ef 100644 --- a/src/libutil/args.hh +++ b/src/libutil/args.hh @@ -135,27 +135,6 @@ public: void addFlag(Flag && flag); - /* Helper functions for constructing flags / positional - arguments. */ - - void mkFlag(char shortName, const std::string & name, - const std::string & description, bool * dest) - { - mkFlag(shortName, name, description, dest, true); - } - - template<class T> - void mkFlag(char shortName, const std::string & longName, const std::string & description, - T * dest, const T & value) - { - addFlag({ - .longName = longName, - .shortName = shortName, - .description = description, - .handler = {[=]() { *dest = value; }} - }); - } - void expectArgs(ExpectedArg && arg) { expectedArgs.emplace_back(std::move(arg)); |