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
2629
2629
error_already_set::m_fetched_error_deleter (detail::error_fetch_and_normalize *raw_ptr) {
2630
2630
gil_scoped_acquire gil;
2631
2631
error_scope scope;
2632
- raw_ptr->release_py_object_references ();
2633
2632
delete raw_ptr;
2634
2633
}
2635
2634
Original file line number Diff line number Diff line change @@ -541,12 +541,6 @@ struct error_fetch_and_normalize {
541
541
return (PyErr_GivenExceptionMatches (m_type.ptr (), exc.ptr ()) != 0 );
542
542
}
543
543
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
-
550
544
// Not protecting these for simplicity.
551
545
object m_type, m_value, m_trace;
552
546
You can’t perform that action at this time.
0 commit comments