From 72caede7be73a672495d82ce9ee2a4043870a715 Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Fri, 1 Nov 2019 05:30:06 -0700 Subject: [PATCH] chore: remove dead files (#1718) The `codec` module has been moved to `tokio-util`. Some files were left, but they were never activated. --- tokio/src/codec/mod.rs | 16 ---------------- tokio/src/lib.rs | 3 --- 2 files changed, 19 deletions(-) delete mode 100644 tokio/src/codec/mod.rs diff --git a/tokio/src/codec/mod.rs b/tokio/src/codec/mod.rs deleted file mode 100644 index 1f4a33a5f..000000000 --- a/tokio/src/codec/mod.rs +++ /dev/null @@ -1,16 +0,0 @@ -//! Utilities for encoding and decoding frames. -//! -//! Contains adapters to go from streams of bytes, [`AsyncRead`] and -//! [`AsyncWrite`], to framed streams implementing [`Sink`] and [`Stream`]. -//! Framed streams are also known as [transports]. -//! -//! [`AsyncRead`]: ../io/trait.AsyncRead.html -//! [`AsyncWrite`]: ../io/trait.AsyncWrite.html -//! [`Sink`]: https://docs.rs/futures/0.1/futures/sink/trait.Sink.html -//! [`Stream`]: https://docs.rs/futures/0.1/futures/stream/trait.Stream.html -//! [transports]: https://tokio.rs/docs/going-deeper/frames/ - -pub use tokio_codec::{ - length_delimited, BytesCodec, Decoder, Encoder, Framed, FramedParts, FramedRead, FramedWrite, - LengthDelimitedCodec, LengthDelimitedCodecError, LinesCodec, LinesCodecError, -}; diff --git a/tokio/src/lib.rs b/tokio/src/lib.rs index f42a8a1e9..5d18e97ce 100644 --- a/tokio/src/lib.rs +++ b/tokio/src/lib.rs @@ -87,9 +87,6 @@ macro_rules! thread_local { #[cfg(feature = "timer")] pub mod clock; -#[cfg(feature = "codec")] -pub mod codec; - #[cfg(feature = "fs")] pub mod fs;