Skip to content

Commit da99c68

Browse files
committed
duplicate function from rebase
1 parent a27ed4e commit da99c68

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/amr/resources_manager/resources_manager.hpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -433,20 +433,6 @@ namespace amr
433433
}
434434

435435

436-
void static handle_sub_resources(auto fn, auto& obj, auto&&... args)
437-
{
438-
using ResourcesView = decltype(obj);
439-
440-
if constexpr (has_runtime_subresourceview_list<ResourcesView>::value)
441-
for (auto& runtimeResource : obj.getRunTimeResourcesViewList())
442-
fn(runtimeResource, args...);
443-
444-
// unpack the tuple subResources and apply for each element registerResources()
445-
// (recursively)
446-
if constexpr (has_compiletime_subresourcesview_list<ResourcesView>::value)
447-
std::apply([&](auto&... subResource) { (fn(subResource, args...), ...); },
448-
obj.getCompileTimeResourcesViewList());
449-
}
450436

451437

452438
template<typename ResourcesView>

0 commit comments

Comments
 (0)