diff --git a/src/client/encoding.rs b/src/client/encoding.rs
deleted file mode 100644
index 4764d67b1..000000000
--- a/src/client/encoding.rs
+++ /dev/null
@@ -1,142 +0,0 @@
-use std::io;
-use std::io::{Read, Write};
-use bytes::{Bytes, BytesMut, BufMut};
-
-use flate2::read::GzDecoder;
-use flate2::write::DeflateDecoder;
-use brotli2::write::BrotliDecoder;
-
-use headers::ContentEncoding;
-use server::encoding::{Decoder, Wrapper};
-
-
-/// Payload wrapper with content decompression support
-pub(crate) struct PayloadStream {
- decoder: Decoder,
- dst: BytesMut,
-}
-
-impl PayloadStream {
- pub fn new(enc: ContentEncoding) -> PayloadStream {
- let dec = match enc {
- ContentEncoding::Br => Decoder::Br(
- Box::new(BrotliDecoder::new(BytesMut::with_capacity(8192).writer()))),
- ContentEncoding::Deflate => Decoder::Deflate(
- Box::new(DeflateDecoder::new(BytesMut::with_capacity(8192).writer()))),
- ContentEncoding::Gzip => Decoder::Gzip(None),
- _ => Decoder::Identity,
- };
- PayloadStream{ decoder: dec, dst: BytesMut::new() }
- }
-}
-
-impl PayloadStream {
-
- pub fn feed_eof(&mut self) -> io::Result