Skip to content

Commit fd11f28

Browse files
remove now-dead code
1 parent 872bd35 commit fd11f28

File tree

5 files changed

+1
-32
lines changed

5 files changed

+1
-32
lines changed

src/aes.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -216,13 +216,6 @@ impl<R: Read> Read for AesReaderValid<R> {
216216
}
217217
}
218218

219-
impl<R> AesReaderValid<R> {
220-
/// Consumes this decoder, returning the underlying reader.
221-
pub fn into_inner(self) -> R {
222-
self.reader
223-
}
224-
}
225-
226219
pub struct AesWriter<W> {
227220
writer: W,
228221
cipher: Cipher,

src/crc32.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ impl<R> Crc32Reader<R> {
3131
Err("Invalid checksum")
3232
}
3333
}
34-
35-
#[allow(dead_code)]
36-
pub fn into_inner(self) -> R {
37-
self.inner
38-
}
3934
}
4035

4136
impl<R: Read> Read for Crc32Reader<R> {

src/read/lzma.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use lzma_rs::decompress::{Options, Stream, UnpackedSize};
22
use std::collections::VecDeque;
3-
use std::io::{copy, Error, Read, Result, Write};
3+
use std::io::{Read, Result, Write};
44

55
const COMPRESSED_BYTES_TO_BUFFER: usize = 4096;
66

@@ -23,11 +23,6 @@ impl<R: Read> LzmaDecoder<R> {
2323
stream: Stream::new_with_options(&OPTIONS, VecDeque::new()),
2424
}
2525
}
26-
27-
pub fn finish(mut self) -> Result<VecDeque<u8>> {
28-
copy(&mut self.compressed_reader, &mut self.stream)?;
29-
self.stream.finish().map_err(Error::from)
30-
}
3126
}
3227

3328
impl<R: Read> Read for LzmaDecoder<R> {

src/read/xz.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,3 @@ impl<R: Read> Read for XzDecoder<R> {
262262
Ok(written)
263263
}
264264
}
265-
266-
impl<R: Read> XzDecoder<R> {
267-
pub fn into_inner(self) -> R {
268-
self.compressed_reader.into_inner()
269-
}
270-
}

src/zipcrypto.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -202,14 +202,6 @@ impl<R: std::io::Read> std::io::Read for ZipCryptoReaderValid<R> {
202202
}
203203
}
204204

205-
impl<R> ZipCryptoReaderValid<R> {
206-
/// Consumes this decoder, returning the underlying reader.
207-
#[allow(dead_code)]
208-
pub fn into_inner(self) -> R {
209-
self.reader.file
210-
}
211-
}
212-
213205
static CRCTABLE: [u32; 256] = [
214206
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3,
215207
0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988, 0x09b64c2b, 0x7eb17cbd, 0xe7b82d07, 0x90bf1d91,

0 commit comments

Comments
 (0)