Skip to content

Commit

Permalink
Revert #3753 (#3754)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed May 23, 2024
1 parent 44a7591 commit 48a4f74
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/operators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 48a4f74

Please sign in to comment.