Skip to content

Commit

Permalink
remove some dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
jthornber committed May 19, 2022
1 parent f46641b commit 58a24a2
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/pack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,6 @@ impl IoVecHandler for DedupHandler {
fn handle_data(&mut self, iov: &IoVec) -> Result<()> {
self.nr_chunks += 1;
let len = iov_len_(iov);
// let (first_byte, len, same) = all_same(iov);
self.mapped_size += len;

if let Some(first_byte) = all_same(iov) {
Expand Down Expand Up @@ -322,22 +321,6 @@ impl IoVecHandler for DedupHandler {
Ok(())
}

/*
fn handle(&mut self, e: &MapEntry) -> Result<()> {
match e {
Fill { byte, len } => self.handle_fill(*byte, *len),
Unmapped { len } => self.handle_unmapped(*len),
Data {
slab,
offset,
nr_entries,
} => self.handle_data(*slab, *offset, *nr_entries),
Partial { begin, end } => self.handle_partial(*begin, *end),
Ref { len } => self.handle_ref(*len),
}
}
*/

fn complete(&mut self) -> Result<()> {
let mut builder = self.mapping_builder.lock().unwrap();
builder.complete(&mut self.stream_buf)?;
Expand Down

0 comments on commit 58a24a2

Please sign in to comment.