From a68cfb4e4e5d6a62837e17038febbf2098072d00 Mon Sep 17 00:00:00 2001 From: schillic Date: Fri, 26 Jul 2024 15:26:13 +0200 Subject: [PATCH] remove unused 'minmax' function --- docs/src/lib/utils.md | 1 - src/Utils/numbers.jl | 36 ------------------------------------ 2 files changed, 37 deletions(-) diff --git a/docs/src/lib/utils.md b/docs/src/lib/utils.md index 0d2577e182..72b2677de3 100644 --- a/docs/src/lib/utils.md +++ b/docs/src/lib/utils.md @@ -71,7 +71,6 @@ LazySets.convert(::Type{Hyperplane{N}}, ::Expr; vars::Vector{Basic}=Basic[]) whe ```@docs sign_cadlag -minmax ``` ## Other functions diff --git a/src/Utils/numbers.jl b/src/Utils/numbers.jl index 51e261378c..c67473e3d3 100644 --- a/src/Utils/numbers.jl +++ b/src/Utils/numbers.jl @@ -30,39 +30,3 @@ julia> LazySets.sign_cadlag.([-0.6, 1.3, 0.0]) function sign_cadlag(x::Real) return x < zero(x) ? -one(x) : one(x) end - -""" - minmax(a, b, c) - -Compute the minimum and maximum of three numbers a, b, c. - -### Input - -- `a` -- number -- `b` -- number -- `c` -- number - -### Output - -The minimum and maximum of three given numbers. - -### Examples - -```jldoctest -julia> LazySets.minmax(1.4, 52.4, -5.2) -(-5.2, 52.4) -``` -""" -function minmax(a, b, c) - if a > b - min, max = b, a - else - min, max = a, b - end - if c > max - max = c - elseif c < min - min = c - end - return min, max -end