Skip to content

Commit 67e4719

Browse files
committed
Remove PyArrayDescr::is_unsized (also redundant)
1 parent 853117d commit 67e4719

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/dtype.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -236,12 +236,6 @@ impl PyArrayDescr {
236236
unsafe { !(*self.as_dtype_ptr()).names.is_null() }
237237
}
238238

239-
/// Returns true if the data type is unsized.
240-
pub fn is_unsized(&self) -> bool {
241-
// equivalent to PyDataType_ISUNSIZED(self)
242-
self.itemsize() == 0 && !self.has_fields()
243-
}
244-
245239
/// Returns true if data type byteorder is native, or `None` if not applicable.
246240
pub fn is_native_byteorder(&self) -> Option<bool> {
247241
// based on PyArray_ISNBO(self->byteorder)

0 commit comments

Comments
 (0)