File tree Expand file tree Collapse file tree 1 file changed +1
-30
lines changed Expand file tree Collapse file tree 1 file changed +1
-30
lines changed Original file line number Diff line number Diff line change 1
- use crate :: { Axis , Dimension , Ix , Ixs } ;
1
+ use crate :: { Axis , Dimension , Ixs } ;
2
2
3
3
/// Create a new Axes iterator
4
4
pub ( crate ) fn axes_of < ' a , D > ( d : & ' a D , strides : & ' a D ) -> Axes < ' a , D >
@@ -58,35 +58,6 @@ pub struct AxisDescription
58
58
}
59
59
60
60
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
-
90
61
copy_and_clone ! ( [ ' a, D ] Axes <' a, D >) ;
91
62
92
63
impl < ' a , D > Iterator for Axes < ' a , D >
You can’t perform that action at this time.
0 commit comments