diff --git a/lib/include/irritator/modeling.hpp b/lib/include/irritator/modeling.hpp index 463c3d1a..ac0d7fed 100644 --- a/lib/include/irritator/modeling.hpp +++ b/lib/include/irritator/modeling.hpp @@ -1148,11 +1148,6 @@ class modeling /// Clean data used as cache for simulation. void clean_simulation() noexcept; - /// If the @c child references a model, model is freed, otherwise, do - /// nothing. This function is useful to replace the content of a existing @c - /// child - void clear(child& c) noexcept; - /// Clear and free all dependencies of the component but let the component /// alive. void clear(component& c) noexcept; @@ -1330,12 +1325,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 +1501,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, diff --git a/lib/src/modeling.cpp b/lib/src/modeling.cpp index 71addf5e..26fe6b63 100644 --- a/lib/src/modeling.cpp +++ b/lib/src/modeling.cpp @@ -837,12 +837,6 @@ void modeling::clean_simulation() noexcept clear_grid_component_cache(*grid); } -void modeling::clear(child& c) noexcept -{ - c.id.mdl_type = dynamics_type::constant; - c.type = child_type::model; -} - void modeling::clear(component& compo) noexcept { switch (compo.type) {