Skip to content

Commit a9228d4

Browse files
committed
Remove PyArrayDescr::subdtype (redundant)
1 parent 46de0e1 commit a9228d4

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/dtype.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -202,20 +202,6 @@ impl PyArrayDescr {
202202
)
203203
}
204204

205-
/// Returns `(item_dtype, shape)` if this dtype describes a sub-array, and `None` otherwise.
206-
///
207-
/// The `shape` is the fixed shape of the sub-array described by this data type,
208-
/// and `item_dtype` the data type of the array.
209-
///
210-
/// If a field whose dtype object has this attribute is retrieved, then the extra dimensions
211-
/// implied by shape are tacked on to the end of the retrieved array.
212-
///
213-
/// Equivalent to [`np.dtype.subdtype`](https://numpy.org/doc/stable/reference/generated/numpy.dtype.subdtype.html).
214-
pub fn subdtype(&self) -> Option<(&PyArrayDescr, Vec<usize>)> {
215-
self.shape()
216-
.and_then(|shape| self.base().map(|base| (base, shape)))
217-
}
218-
219205
/// Returns true if the dtype is a sub-array at the top level.
220206
///
221207
/// Equivalent to [`np.dtype.hasobject`](https://numpy.org/doc/stable/reference/generated/numpy.dtype.hasobject.html).

0 commit comments

Comments
 (0)