summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-01-08 11:42:44 +0100
committerEelco Dolstra <edolstra@gmail.com>2021-01-08 11:42:44 +0100
commit29a445840a4f01dfb1533806f8dfc28f7dc4bee9 (patch)
treebfd3d32b38c25fc39a5aac2ac6ecb04b83a2f486
parent1d4954e73e389d319416bf29e949b4b1cbc9ebd9 (diff)
Remove unused mkFlag1
-rw-r--r--src/libutil/args.hh13
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)
{