diff --git a/include/pybind11/pybind11.h b/include/pybind11/pybind11.h index 75a0b49695..e6606a5976 100644 --- a/include/pybind11/pybind11.h +++ b/include/pybind11/pybind11.h @@ -1517,13 +1517,6 @@ inline dict globals() { #endif } -template ()>> -PYBIND11_DEPRECATED("make_simple_namespace should be replaced with " - "py::module_::import(\"types\").attr(\"SimpleNamespace\") ") -object make_simple_namespace(Args &&...args_) { - return module_::import("types").attr("SimpleNamespace")(std::forward(args_)...); -} - PYBIND11_NAMESPACE_BEGIN(detail) /// Generic support for creating new Python heap types class generic_type : public object {