diff --git a/core/src/OpenMP/Kokkos_OpenMP_Instance.hpp b/core/src/OpenMP/Kokkos_OpenMP_Instance.hpp index 2ccd065edf1..1e34580eec2 100644 --- a/core/src/OpenMP/Kokkos_OpenMP_Instance.hpp +++ b/core/src/OpenMP/Kokkos_OpenMP_Instance.hpp @@ -128,11 +128,6 @@ class OpenMPInternal { void print_configuration(std::ostream& s) const; }; -inline bool execute_in_serial(OpenMP const& space = OpenMP()) { - return (space.impl_internal_space_instance()->get_level() < omp_get_level() && - !(omp_get_nested() && (omp_get_level() == 1))); -} - } // namespace Impl namespace Experimental {