Skip to content

Commit f15db11

Browse files
committed
remove unused abs2
1 parent a3a2350 commit f15db11

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/extras/misc.jl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,6 @@ function Base.clamp(x::T, lo::DoubleFloat{T}, hi::DoubleFloat{T}) where {T}
4040
return lo
4141
end
4242

43-
abs2(x::DoubleFloat{T}) where {T} =
44-
let absx = abs(x)
45-
absx * absx
46-
end
47-
4843
# for compatibility with old or unrevised outside linalg functions
4944
function Base.:(+)(v::Vector{DoubleFloat{T}}, x::T) where {T}
5045
return v .+ x

0 commit comments

Comments
 (0)