Skip to content

Commit

Permalink
remove AsPyPointer on non-gil-refs
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt committed Oct 4, 2024
1 parent 2e21095 commit 9b3015f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/types/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,14 +201,6 @@ macro_rules! pyobject_native_type_named (
}
}

unsafe impl<$($generics,)*> $crate::AsPyPointer for $name {
/// Gets the underlying FFI pointer, returns a borrowed pointer.
#[inline]
fn as_ptr(&self) -> *mut $crate::ffi::PyObject {
self.0.as_ptr()
}
}

impl $crate::types::DerefToPyAny for $name {}
};
);
Expand Down

0 comments on commit 9b3015f

Please sign in to comment.