Skip to content

Commit 6590e3d

Browse files
committed
Remove deprecated formatting functions
1 parent 249ba66 commit 6590e3d

File tree

2 files changed

+2
-50
lines changed

2 files changed

+2
-50
lines changed

src/format/formatting.rs

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -139,53 +139,6 @@ impl<'a, I: Iterator<Item = B> + Clone, B: Borrow<Item<'a>>> Display for Delayed
139139
}
140140
}
141141

142-
/// Tries to format given arguments with given formatting items.
143-
/// Internally used by `DelayedFormat`.
144-
#[cfg(feature = "alloc")]
145-
#[deprecated(since = "0.4.32", note = "Use DelayedFormat::fmt instead")]
146-
pub fn format<'a, I, B>(
147-
w: &mut fmt::Formatter,
148-
date: Option<&NaiveDate>,
149-
time: Option<&NaiveTime>,
150-
off: Option<&(String, FixedOffset)>,
151-
items: I,
152-
) -> fmt::Result
153-
where
154-
I: Iterator<Item = B> + Clone,
155-
B: Borrow<Item<'a>>,
156-
{
157-
DelayedFormat {
158-
date: date.copied(),
159-
time: time.copied(),
160-
off: off.cloned(),
161-
items,
162-
#[cfg(feature = "unstable-locales")]
163-
locale: None,
164-
}
165-
.fmt(w)
166-
}
167-
168-
/// Formats single formatting item
169-
#[cfg(feature = "alloc")]
170-
#[deprecated(since = "0.4.32", note = "Use DelayedFormat::fmt instead")]
171-
pub fn format_item(
172-
w: &mut fmt::Formatter,
173-
date: Option<&NaiveDate>,
174-
time: Option<&NaiveTime>,
175-
off: Option<&(String, FixedOffset)>,
176-
item: &Item<'_>,
177-
) -> fmt::Result {
178-
DelayedFormat {
179-
date: date.copied(),
180-
time: time.copied(),
181-
off: off.cloned(),
182-
items: [item].into_iter(),
183-
#[cfg(feature = "unstable-locales")]
184-
locale: None,
185-
}
186-
.fmt(w)
187-
}
188-
189142
#[cfg(feature = "alloc")]
190143
fn format_inner(
191144
w: &mut impl Write,

src/format/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,9 @@ pub(crate) use formatting::write_hundreds;
5858
pub(crate) use formatting::write_rfc2822;
5959
#[cfg(any(feature = "alloc", feature = "serde", feature = "rustc-serialize"))]
6060
pub(crate) use formatting::write_rfc3339;
61-
pub use formatting::SecondsFormat;
6261
#[cfg(feature = "alloc")]
63-
#[allow(deprecated)]
64-
pub use formatting::{format, format_item, DelayedFormat};
62+
pub use formatting::DelayedFormat;
63+
pub use formatting::SecondsFormat;
6564
#[cfg(feature = "unstable-locales")]
6665
pub use locales::Locale;
6766
pub(crate) use parse::parse_rfc3339;

0 commit comments

Comments
 (0)