Remove unused code

This commit is contained in:
Joseph Birr-Pixton 2020-05-08 14:15:26 +01:00
parent fb1970c8fc
commit 79b0b5d775
1 changed files with 0 additions and 10 deletions

View File

@ -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 {