From b5ff43e10925e1856df6455dc5c98dc0f276ee18 Mon Sep 17 00:00:00 2001 From: Username404 Date: Sat, 1 Jan 2022 10:56:18 +0100 Subject: [PATCH] Remove a useless constructor in the ParseTree class Signed-off-by: Username404 --- src/headers/parsing/ParseComponents.hpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/headers/parsing/ParseComponents.hpp b/src/headers/parsing/ParseComponents.hpp index 218b7e4..225839e 100644 --- a/src/headers/parsing/ParseComponents.hpp +++ b/src/headers/parsing/ParseComponents.hpp @@ -97,11 +97,6 @@ public: ParseTree(): subComponents() {}; IS_PARSECOMPONENT constexpr explicit ParseTree(const T& element): ParseTree() { addComponent(element); } IS_PARSECOMPONENT constexpr ParseTree(const initializer_list& elements): ParseTree() { addAllComponents(elements); } - ParseTree(const initializer_list& elements): ParseTree() { - for_each(elements.begin(), elements.end(), [&](ParseComponent* component){ - subComponents.emplace_back(component); - }); - } }; #undef IS_PARSECOMPONENT