@@ -40,11 +40,6 @@ pub unsafe trait RawData: Sized
4040 /// The array element type.
4141 type Elem ;
4242
43- #[ doc( hidden) ]
44- // This method is only used for debugging
45- #[ deprecated( note = "Unused" , since = "0.15.2" ) ]
46- fn _data_slice ( & self ) -> Option < & [ Self :: Elem ] > ;
47-
4843 #[ doc( hidden) ]
4944 fn _is_pointer_inbounds ( & self , ptr : * const Self :: Elem ) -> bool ;
5045
@@ -177,12 +172,6 @@ unsafe impl<A> RawData for RawViewRepr<*const A>
177172{
178173 type Elem = A ;
179174
180- #[ inline]
181- fn _data_slice ( & self ) -> Option < & [ A ] >
182- {
183- None
184- }
185-
186175 #[ inline( always) ]
187176 fn _is_pointer_inbounds ( & self , _ptr : * const Self :: Elem ) -> bool
188177 {
@@ -204,12 +193,6 @@ unsafe impl<A> RawData for RawViewRepr<*mut A>
204193{
205194 type Elem = A ;
206195
207- #[ inline]
208- fn _data_slice ( & self ) -> Option < & [ A ] >
209- {
210- None
211- }
212-
213196 #[ inline( always) ]
214197 fn _is_pointer_inbounds ( & self , _ptr : * const Self :: Elem ) -> bool
215198 {
@@ -247,10 +230,6 @@ unsafe impl<A> RawDataClone for RawViewRepr<*mut A>
247230unsafe impl < A > RawData for OwnedArcRepr < A >
248231{
249232 type Elem = A ;
250- fn _data_slice ( & self ) -> Option < & [ A ] >
251- {
252- Some ( self . 0 . as_slice ( ) )
253- }
254233
255234 fn _is_pointer_inbounds ( & self , self_ptr : * const Self :: Elem ) -> bool
256235 {
@@ -353,11 +332,6 @@ unsafe impl<A> RawData for OwnedRepr<A>
353332{
354333 type Elem = A ;
355334
356- fn _data_slice ( & self ) -> Option < & [ A ] >
357- {
358- Some ( self . as_slice ( ) )
359- }
360-
361335 fn _is_pointer_inbounds ( & self , self_ptr : * const Self :: Elem ) -> bool
362336 {
363337 let slc = self . as_slice ( ) ;
@@ -437,12 +411,6 @@ unsafe impl<'a, A> RawData for ViewRepr<&'a A>
437411{
438412 type Elem = A ;
439413
440- #[ inline]
441- fn _data_slice ( & self ) -> Option < & [ A ] >
442- {
443- None
444- }
445-
446414 #[ inline( always) ]
447415 fn _is_pointer_inbounds ( & self , _ptr : * const Self :: Elem ) -> bool
448416 {
@@ -481,12 +449,6 @@ unsafe impl<'a, A> RawData for ViewRepr<&'a mut A>
481449{
482450 type Elem = A ;
483451
484- #[ inline]
485- fn _data_slice ( & self ) -> Option < & [ A ] >
486- {
487- None
488- }
489-
490452 #[ inline( always) ]
491453 fn _is_pointer_inbounds ( & self , _ptr : * const Self :: Elem ) -> bool
492454 {
@@ -603,15 +565,6 @@ unsafe impl<'a, A> RawData for CowRepr<'a, A>
603565{
604566 type Elem = A ;
605567
606- fn _data_slice ( & self ) -> Option < & [ A ] >
607- {
608- #[ allow( deprecated) ]
609- match self {
610- CowRepr :: View ( view) => view. _data_slice ( ) ,
611- CowRepr :: Owned ( data) => data. _data_slice ( ) ,
612- }
613- }
614-
615568 #[ inline]
616569 fn _is_pointer_inbounds ( & self , ptr : * const Self :: Elem ) -> bool
617570 {
0 commit comments