Skip to content

Commit

Permalink
Delete 1.x ZonedDateTimeFormatter (#5539)
Browse files Browse the repository at this point in the history
  • Loading branch information
sffc authored Sep 13, 2024
1 parent 40a68b4 commit 0bc8374
Show file tree
Hide file tree
Showing 11 changed files with 6 additions and 1,649 deletions.
6 changes: 1 addition & 5 deletions components/datetime/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions components/datetime/src/any/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

mod date;
mod datetime;
mod zoned_datetime;

pub use date::DateFormatter;
pub use datetime::DateTimeFormatter;
pub use zoned_datetime::ZonedDateTimeFormatter;
602 changes: 0 additions & 602 deletions components/datetime/src/any/zoned_datetime.rs

This file was deleted.

1 change: 0 additions & 1 deletion components/datetime/src/format/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ pub mod datetime;
#[cfg(feature = "experimental")]
pub mod neo;
pub mod time_zone;
pub mod zoned_datetime;
102 changes: 0 additions & 102 deletions components/datetime/src/format/zoned_datetime.rs

This file was deleted.

11 changes: 2 additions & 9 deletions components/datetime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@
//!
//! [`TypedDateTimeFormatter`] and [`DateTimeFormatter`] are the main types of the component. They accepts a set of arguments which
//! allow it to collect necessary data from the [data provider], and once instantiated, can be
//! used to quickly format any date and time provided. There are variants of these types that can format greater or fewer components,
//! including [`TypedDateFormatter`] & [`DateFormatter`], [`TypedZonedDateTimeFormatter`] & [`ZonedDateTimeFormatter`], [`TimeFormatter`],
//! and [`TimeZoneFormatter`].
//!
//! There is no `ZonedTimeFormatter`. To format only a time in a time zone, use [`ZonedDateTimeFormatter`].
//! used to quickly format any date and time provided. There are variants of these types that can format greater or fewer components.
//!
//! These formatters work with types from the [`calendar`] module, like [`Date`], [`DateTime`], and [`Time`],
//! and [`timezone::CustomTimeZone`], however other types may be used provided they implement the traits from the [`input`] module.
Expand Down Expand Up @@ -163,9 +159,8 @@ pub(crate) mod raw;
pub mod skeleton;
pub mod time_zone;
mod tz_registry;
mod zoned_datetime;

pub use any::{DateFormatter, DateTimeFormatter, ZonedDateTimeFormatter};
pub use any::{DateFormatter, DateTimeFormatter};
pub use calendar::CldrCalendar;
#[cfg(feature = "experimental")]
pub use calendar::{InternalCldrCalendar, NeverCalendar};
Expand All @@ -178,9 +173,7 @@ pub use format::datetime::FormattedDateTime;
#[cfg(feature = "experimental")]
pub use format::neo::{FormattedDateTimePattern, LoadError, SingleLoadError, TypedDateTimeNames};
pub use format::time_zone::FormattedTimeZone;
pub use format::zoned_datetime::FormattedZonedDateTime;
pub use options::DateTimeFormatterOptions;
pub use zoned_datetime::TypedZonedDateTimeFormatter;

#[doc(no_inline)]
pub use DateTimeError as Error;
2 changes: 0 additions & 2 deletions components/datetime/src/raw/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,5 @@
mod datetime;
#[cfg(feature = "experimental")]
pub(crate) mod neo;
mod zoned_datetime;

pub(crate) use datetime::{DateFormatter, DateTimeFormatter, TimeFormatter};
pub(crate) use zoned_datetime::ZonedDateTimeFormatter;
224 changes: 0 additions & 224 deletions components/datetime/src/raw/zoned_datetime.rs

This file was deleted.

Loading

0 comments on commit 0bc8374

Please sign in to comment.