Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
lulf committed Apr 29, 2024
1 parent 4217a75 commit 6b2605a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/page.rs
Original file line number Diff line number Diff line change
Expand Up @@ -439,10 +439,6 @@ impl<H: Header> PageWriter<H> {
self.chunk_pos >= MAX_CHUNK_SIZE
}

pub fn chunk_size(&self) -> usize {
self.chunk_pos
}

pub async fn write<F: Flash>(&mut self, flash: &mut F, data: &[u8]) -> Result<usize, Error<F::Error>> {
let max_write = PAGE_SIZE
.saturating_sub(self.chunk_offset + ChunkHeader::SIZE + self.chunk_pos)
Expand Down

0 comments on commit 6b2605a

Please sign in to comment.