Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
bozaro committed May 10, 2016
1 parent c13b8b0 commit 77e89fd
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/bin/lz4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,25 +50,3 @@ fn copy(src: &mut Read, dst: &mut Write) -> Result<()> {
}
Ok(())
}

struct Wrapper<W: Write> {
w: W,
written_size: usize,
}

impl<W: Write> Wrapper<W> {
pub fn get_written_size(&self) -> usize {
self.written_size
}
}

impl<W: Write> Write for Wrapper<W> {
fn write(&mut self, buffer: &[u8]) -> Result<usize> {
self.written_size += buffer.len();
self.w.write(buffer)
}

fn flush(&mut self) -> Result<()> {
self.w.flush()
}
}

0 comments on commit 77e89fd

Please sign in to comment.