Skip to content

Commit

Permalink
fix(snap)!: Remove deprecated functions
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Apr 19, 2024
1 parent 429f389 commit 86fa504
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions crates/snapbox/src/report/color.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,8 @@ impl Palette {
Self::default()
}

#[deprecated(since = "0.4.9", note = "Renamed to `Palette::color")]
pub fn always() -> Self {
Self::color()
}

#[deprecated(since = "0.4.9", note = "Renamed to `Palette::plain")]
pub fn never() -> Self {
Self::plain()
}

#[deprecated(
since = "0.4.9",
note = "Use `Palette::always`, `auto` behavior is now implicit"
)]
pub fn auto() -> Self {
#[allow(dead_code)]
pub(crate) fn auto() -> Self {
if is_colored() {
Self::color()
} else {
Expand Down

0 comments on commit 86fa504

Please sign in to comment.