File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -34,11 +34,6 @@ impl<'a> crate::traits::Owned<'a> for Owned {
34
34
35
35
pub type Reader < ' a > = & ' a [ u8 ] ;
36
36
37
- #[ deprecated( since = "0.13.4" , note = "This function is unsafe and was never intended for external use" ) ]
38
- pub fn new_reader < ' a > ( p : * const u8 , len : u32 ) -> Reader < ' a > {
39
- unsafe { :: core:: slice:: from_raw_parts ( p, len as usize ) }
40
- }
41
-
42
37
pub ( crate ) unsafe fn reader_from_raw_parts < ' a > ( p : * const u8 , len : u32 ) -> Reader < ' a > {
43
38
:: core:: slice:: from_raw_parts ( p, len as usize )
44
39
}
@@ -51,11 +46,6 @@ impl <'a> crate::traits::FromPointerReader<'a> for Reader<'a> {
51
46
52
47
pub type Builder < ' a > = & ' a mut [ u8 ] ;
53
48
54
- #[ deprecated( since = "0.13.4" , note = "This function is unsafe and was never intended for external use" ) ]
55
- pub fn new_builder < ' a > ( p : * mut u8 , len : u32 ) -> Builder < ' a > {
56
- unsafe { :: core:: slice:: from_raw_parts_mut ( p, len as usize ) }
57
- }
58
-
59
49
pub ( crate ) unsafe fn builder_from_raw_parts < ' a > ( p : * mut u8 , len : u32 ) -> Builder < ' a > {
60
50
:: core:: slice:: from_raw_parts_mut ( p, len as usize )
61
51
}
You can’t perform that action at this time.
0 commit comments