mirror of https://github.com/ctz/rustls
Remove unused code
This commit is contained in:
parent
fb1970c8fc
commit
79b0b5d775
|
@ -23,12 +23,6 @@ impl Payload {
|
|||
pub fn empty() -> Payload {
|
||||
Payload::new(Vec::new())
|
||||
}
|
||||
|
||||
pub fn from_slice(data: &[u8]) -> Payload {
|
||||
let mut v = Vec::with_capacity(data.len());
|
||||
v.extend_from_slice(data);
|
||||
Payload(v)
|
||||
}
|
||||
}
|
||||
|
||||
impl Codec for key::Certificate {
|
||||
|
@ -53,10 +47,6 @@ impl PayloadU24 {
|
|||
pub fn new(bytes: Vec<u8>) -> PayloadU24 {
|
||||
PayloadU24(bytes)
|
||||
}
|
||||
|
||||
pub fn empty() -> PayloadU24 {
|
||||
PayloadU24::new(Vec::new())
|
||||
}
|
||||
}
|
||||
|
||||
impl Codec for PayloadU24 {
|
||||
|
|
Loading…
Reference in New Issue