Revert "Add handling of return_value_policy::_clif_automatic in type_caster_pyobject_ptr.h (backported from https://github.com/google/pywrapcc/pull/30021)"

This reverts commit bd69f7aaf2.
This commit is contained in:
Ralf W. Grosse-Kunstleve 2024-06-10 18:38:40 -07:00 committed by Ralf W. Grosse-Kunstleve
parent 21d81fc21d
commit 7d8e6ea5b9

View File

@ -32,8 +32,7 @@ public:
raise_from(PyExc_SystemError, "src != nullptr but PyErr_Occurred()");
throw error_already_set();
}
if (policy == return_value_policy::take_ownership
|| policy == return_value_policy::_clif_automatic) {
if (policy == return_value_policy::take_ownership) {
return src;
}
if (policy == return_value_policy::reference