diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-01-08 11:42:44 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2021-01-08 11:42:44 +0100 |
commit | 29a445840a4f01dfb1533806f8dfc28f7dc4bee9 (patch) | |
tree | bfd3d32b38c25fc39a5aac2ac6ecb04b83a2f486 | |
parent | 1d4954e73e389d319416bf29e949b4b1cbc9ebd9 (diff) |
Remove unused mkFlag1
-rw-r--r-- | src/libutil/args.hh | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/libutil/args.hh b/src/libutil/args.hh index c54b0efaf..62b9516d8 100644 --- a/src/libutil/args.hh +++ b/src/libutil/args.hh @@ -143,19 +143,6 @@ public: /* Helper functions for constructing flags / positional arguments. */ - void mkFlag1(char shortName, const std::string & longName, - const std::string & label, const std::string & description, - std::function<void(std::string)> fun) - { - addFlag({ - .longName = longName, - .shortName = shortName, - .description = description, - .labels = {label}, - .handler = {[=](std::string s) { fun(s); }} - }); - } - void mkFlag(char shortName, const std::string & name, const std::string & description, bool * dest) { |