From 7d75a720ca89de7fdafe31f4c0921c4c027d60d4 Mon Sep 17 00:00:00 2001 From: David Given Date: Sat, 15 May 2021 19:00:45 +0200 Subject: [PATCH] Remove dependent FlagGroups, to make sure that we can't use them by mistake. --- lib/flags.cc | 6 ------ lib/flags.h | 1 - 2 files changed, 7 deletions(-) diff --git a/lib/flags.cc b/lib/flags.cc index 0831e1e1..0f7a9062 100644 --- a/lib/flags.cc +++ b/lib/flags.cc @@ -30,12 +30,6 @@ static ActionFlag docFlag = ActionFlag( "Shows the available configuration options.", doDoc); -FlagGroup::FlagGroup(const std::initializer_list groups): - _groups(groups.begin(), groups.end()) -{ - currentFlagGroup = this; -} - FlagGroup::FlagGroup() { currentFlagGroup = this; diff --git a/lib/flags.h b/lib/flags.h index 7ec67885..eed9ca1a 100644 --- a/lib/flags.h +++ b/lib/flags.h @@ -9,7 +9,6 @@ class FlagGroup private: FlagGroup(const FlagGroup& group); public: - FlagGroup(const std::initializer_list groups); FlagGroup(); public: