Skip to content

Commit

Permalink
mod: remove unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
quesnel committed May 13, 2024
1 parent 6f145ce commit 7f35d6b
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions lib/include/irritator/modeling.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<typename Function, typename... Args>
auto for_all_tree_nodes(Function&& f, Args... args) noexcept;

template<typename Function, typename... Args>
auto for_all_tree_nodes(Function&& f, Args... args) const noexcept;

template<typename Function, typename... Args>
void for_each_children(tree_node& tn, Function&& f, Args... args) noexcept;

Expand Down Expand Up @@ -1512,23 +1506,6 @@ inline tree_node::tree_node(component_id id_, u64 unique_id_) noexcept
Project part
*/

template<typename Function, typename... Args>
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<typename Function, typename... Args>
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<typename Function, typename... Args>
inline void project::for_each_children(tree_node& tn,
Function&& f,
Expand Down

0 comments on commit 7f35d6b

Please sign in to comment.