Skip to content

Commit 34b7e9c

Browse files
committed
remove unused method
1 parent f27a037 commit 34b7e9c

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

openssl/src/ssl/bio.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,6 @@ pub unsafe fn get_mut<'a, S: 'a>(bio: *mut BIO) -> &'a mut S {
8484
&mut state(bio).stream
8585
}
8686

87-
pub unsafe fn set_dtls_mtu_size<S>(bio: *mut BIO, mtu_size: usize) {
88-
if mtu_size as u64 > c_long::max_value() as u64 {
89-
panic!(
90-
"Given MTU size {} can't be represented in a positive `c_long` range",
91-
mtu_size
92-
)
93-
}
94-
state::<S>(bio).dtls_mtu_size = mtu_size as c_long;
95-
}
96-
9787
unsafe fn state<'a, S: 'a>(bio: *mut BIO) -> &'a mut StreamState<S> {
9888
&mut *(BIO_get_data(bio) as *mut _)
9989
}

0 commit comments

Comments
 (0)