From c991b5da85171bc99b788a680c9bbd14f63504f4 Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Fri, 24 May 2024 16:34:17 +0100 Subject: Remove deprecated --- src/gleam/bool.gleam | 54 ---------------------------------------------------- 1 file changed, 54 deletions(-) (limited to 'src') diff --git a/src/gleam/bool.gleam b/src/gleam/bool.gleam index 1c6e863..ba2222b 100644 --- a/src/gleam/bool.gleam +++ b/src/gleam/bool.gleam @@ -235,60 +235,6 @@ pub fn compare(a: Bool, with b: Bool) -> Order { } } -/// Returns `True` if either argument's value is `True`. -/// -/// ## Examples -/// -/// ```gleam -/// max(True, False) -/// // -> True -/// ``` -/// -/// ```gleam -/// max(False, True) -/// // -> True -/// ``` -/// -/// ```gleam -/// max(False, False) -/// // -> False -/// ``` -/// -@deprecated("Use the `bool.or` function instead") -pub fn max(a: Bool, b: Bool) -> Bool { - case a { - True -> True - False -> b - } -} - -/// Returns `False` if either bool value is `False`. -/// -/// ## Examples -/// -/// ```gleam -/// min(True, False) -/// // -> False -/// ``` -/// -/// ```gleam -/// min(False, True) -/// // -> False -/// ``` -/// -/// ```gleam -/// min(False, False) -/// // -> False -/// ``` -/// -@deprecated("Use the `bool.and` function instead") -pub fn min(a: Bool, b: Bool) -> Bool { - case a { - False -> False - True -> b - } -} - /// Returns a numeric representation of the given bool. /// /// ## Examples -- cgit v1.2.3