Remove a useless constructor in the ParseTree class

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
Username404 2022-01-01 10:56:18 +01:00
parent eb18940364
commit 0e7fc913bb
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 0 additions and 5 deletions

View File

@ -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<T>& elements): ParseTree() { addAllComponents(elements); }
ParseTree(const initializer_list<ParseComponent*>& elements): ParseTree() {
for_each(elements.begin(), elements.end(), [&](ParseComponent* component){
subComponents.emplace_back(component);
});
}
};
#undef IS_PARSECOMPONENT