From 6b416e8b3902f8f97656a8addb66037914d2e35f Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Thu, 23 May 2024 15:06:08 +1200 Subject: [PATCH] Revert #2753 --- src/operators.jl | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/operators.jl b/src/operators.jl index 0c5309b6881..9e18da55c64 100644 --- a/src/operators.jl +++ b/src/operators.jl @@ -568,12 +568,3 @@ function Base.complex( ) return r + im * i end - -if VERSION >= v"1.11.0-alpha1" && isdefined(LinearAlgebra, :haszero) - # See JuMP.jl#3752 for details. - # Introduced by https://github.com/JuliaLang/julia/pull/52528 - LinearAlgebra.haszero(::Type{<:AbstractVariableRef}) = true - LinearAlgebra.haszero(::Type{<:GenericAffExpr}) = true - LinearAlgebra.haszero(::Type{<:GenericQuadExpr}) = true - LinearAlgebra.haszero(::Type{<:GenericNonlinearExpr}) = true -end