File tree Expand file tree Collapse file tree 2 files changed +0
-7
lines changed
Expand file tree Collapse file tree 2 files changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -2629,7 +2629,6 @@ inline void
26292629error_already_set::m_fetched_error_deleter (detail::error_fetch_and_normalize *raw_ptr) {
26302630 gil_scoped_acquire gil;
26312631 error_scope scope;
2632- raw_ptr->release_py_object_references ();
26332632 delete raw_ptr;
26342633}
26352634
Original file line number Diff line number Diff line change @@ -541,12 +541,6 @@ struct error_fetch_and_normalize {
541541 return (PyErr_GivenExceptionMatches (m_type.ptr (), exc.ptr ()) != 0 );
542542 }
543543
544- void release_py_object_references () {
545- m_type.release ().dec_ref ();
546- m_value.release ().dec_ref ();
547- m_trace.release ().dec_ref ();
548- }
549-
550544 // Not protecting these for simplicity.
551545 object m_type, m_value, m_trace;
552546
You can’t perform that action at this time.
0 commit comments