Skip to content

Commit ca7d8bb

Browse files
committed
Remove deprecated AxisDescription methods
1 parent 99766f6 commit ca7d8bb

File tree

1 file changed

+1
-30
lines changed

1 file changed

+1
-30
lines changed

src/dimension/axes.rs

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::{Axis, Dimension, Ix, Ixs};
1+
use crate::{Axis, Dimension, Ixs};
22

33
/// Create a new Axes iterator
44
pub(crate) fn axes_of<'a, D>(d: &'a D, strides: &'a D) -> Axes<'a, D>
@@ -58,35 +58,6 @@ pub struct AxisDescription
5858
}
5959

6060
copy_and_clone!(AxisDescription);
61-
62-
// AxisDescription can't really be empty
63-
// https://github.com/rust-ndarray/ndarray/pull/642#discussion_r296051702
64-
#[allow(clippy::len_without_is_empty)]
65-
impl AxisDescription
66-
{
67-
/// Return axis
68-
#[deprecated(note = "Use .axis field instead", since = "0.15.0")]
69-
#[inline(always)]
70-
pub fn axis(self) -> Axis
71-
{
72-
self.axis
73-
}
74-
/// Return length
75-
#[deprecated(note = "Use .len field instead", since = "0.15.0")]
76-
#[inline(always)]
77-
pub fn len(self) -> Ix
78-
{
79-
self.len
80-
}
81-
/// Return stride
82-
#[deprecated(note = "Use .stride field instead", since = "0.15.0")]
83-
#[inline(always)]
84-
pub fn stride(self) -> Ixs
85-
{
86-
self.stride
87-
}
88-
}
89-
9061
copy_and_clone!(['a, D] Axes<'a, D>);
9162

9263
impl<'a, D> Iterator for Axes<'a, D>

0 commit comments

Comments
 (0)