diff --git a/lib/include/irritator/modeling.hpp b/lib/include/irritator/modeling.hpp index 463c3d1a..2864485c 100644 --- a/lib/include/irritator/modeling.hpp +++ b/lib/include/irritator/modeling.hpp @@ -1330,12 +1330,6 @@ class project auto node(tree_node& node) const noexcept -> tree_node_id; auto node(const tree_node& node) const noexcept -> tree_node_id; - template - auto for_all_tree_nodes(Function&& f, Args... args) noexcept; - - template - auto for_all_tree_nodes(Function&& f, Args... args) const noexcept; - template void for_each_children(tree_node& tn, Function&& f, Args... args) noexcept; @@ -1512,23 +1506,6 @@ inline tree_node::tree_node(component_id id_, u64 unique_id_) noexcept Project part */ -template -inline auto project::for_all_tree_nodes(Function&& f, Args... args) noexcept -{ - tree_node* tn = nullptr; - while (tree_nodes.next(tn)) - return f(*tn, args...); -} - -template -inline auto project::for_all_tree_nodes(Function&& f, - Args... args) const noexcept -{ - const tree_node* tn = nullptr; - while (tree_nodes.next(tn)) - return f(*tn, args...); -} - template inline void project::for_each_children(tree_node& tn, Function&& f,