Skip to content

Commit

Permalink
chore: some dead code fell out of the visibility changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sstelfox committed Jul 2, 2024
1 parent 01597eb commit e6e150a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 96 deletions.
89 changes: 0 additions & 89 deletions src/codec/header/format_header.rs

This file was deleted.

8 changes: 2 additions & 6 deletions src/codec/header/key_count.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,17 @@ use crate::codec::{ParserResult, Stream};
pub struct KeyCount(u8);

impl KeyCount {
pub async fn encode<W: AsyncWrite + Unpin + Send>(
pub(crate) async fn encode<W: AsyncWrite + Unpin + Send>(
&self,
writer: &mut W,
) -> std::io::Result<usize> {
writer.write_all(&[self.0]).await?;
Ok(1)
}
pub fn parse(input: Stream) -> ParserResult<Self> {
pub(crate) fn parse(input: Stream) -> ParserResult<Self> {
let (input, count) = take(1u8).parse_peek(input)?;
Ok((input, Self(count[0])))
}

pub const fn size() -> usize {
1
}
}

impl Deref for KeyCount {
Expand Down
1 change: 0 additions & 1 deletion src/codec/header/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
mod access_mask;
mod content_options;
mod format_header;
mod identity_header;
mod key_count;
mod public_settings;
Expand Down

0 comments on commit e6e150a

Please sign in to comment.