diff --git a/src/format/formatting.rs b/src/format/formatting.rs index 19338102d4..0f2babd7aa 100644 --- a/src/format/formatting.rs +++ b/src/format/formatting.rs @@ -139,53 +139,6 @@ impl<'a, I: Iterator + Clone, B: Borrow>> Display for Delayed } } -/// Tries to format given arguments with given formatting items. -/// Internally used by `DelayedFormat`. -#[cfg(feature = "alloc")] -#[deprecated(since = "0.4.32", note = "Use DelayedFormat::fmt instead")] -pub fn format<'a, I, B>( - w: &mut fmt::Formatter, - date: Option<&NaiveDate>, - time: Option<&NaiveTime>, - off: Option<&(String, FixedOffset)>, - items: I, -) -> fmt::Result -where - I: Iterator + Clone, - B: Borrow>, -{ - DelayedFormat { - date: date.copied(), - time: time.copied(), - off: off.cloned(), - items, - #[cfg(feature = "unstable-locales")] - locale: None, - } - .fmt(w) -} - -/// Formats single formatting item -#[cfg(feature = "alloc")] -#[deprecated(since = "0.4.32", note = "Use DelayedFormat::fmt instead")] -pub fn format_item( - w: &mut fmt::Formatter, - date: Option<&NaiveDate>, - time: Option<&NaiveTime>, - off: Option<&(String, FixedOffset)>, - item: &Item<'_>, -) -> fmt::Result { - DelayedFormat { - date: date.copied(), - time: time.copied(), - off: off.cloned(), - items: [item].into_iter(), - #[cfg(feature = "unstable-locales")] - locale: None, - } - .fmt(w) -} - #[cfg(feature = "alloc")] fn format_inner( w: &mut impl Write, diff --git a/src/format/mod.rs b/src/format/mod.rs index 06aa6c105b..584124d31e 100644 --- a/src/format/mod.rs +++ b/src/format/mod.rs @@ -58,10 +58,9 @@ pub(crate) use formatting::write_hundreds; pub(crate) use formatting::write_rfc2822; #[cfg(any(feature = "alloc", feature = "serde", feature = "rustc-serialize"))] pub(crate) use formatting::write_rfc3339; -pub use formatting::SecondsFormat; #[cfg(feature = "alloc")] -#[allow(deprecated)] -pub use formatting::{format, format_item, DelayedFormat}; +pub use formatting::DelayedFormat; +pub use formatting::SecondsFormat; #[cfg(feature = "unstable-locales")] pub use locales::Locale; pub(crate) use parse::parse_rfc3339;