Skip to content

Commit 367c1c5

Browse files
committed
get rid of deprecated vectorize_arg
1 parent d23cebd commit 367c1c5

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/ColorVectorSpace.jl

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,9 @@ end
6060

6161
for f in (:trunc, :floor, :round, :ceil, :eps, :bswap)
6262
@eval $f(g::Gray{T}) where {T} = Gray{T}($f(gray(g)))
63-
@eval Compat.@dep_vectorize_1arg Gray $f
6463
end
6564
eps(::Type{Gray{T}}) where {T} = Gray(eps(T))
66-
Compat.@dep_vectorize_1arg AbstractGray isfinite
67-
Compat.@dep_vectorize_1arg AbstractGray isinf
68-
Compat.@dep_vectorize_1arg AbstractGray isnan
69-
Compat.@dep_vectorize_1arg AbstractGray abs
70-
Compat.@dep_vectorize_1arg AbstractGray abs2
65+
7166
for f in (:trunc, :floor, :round, :ceil)
7267
@eval $f(::Type{T}, g::Gray) where {T<:Integer} = Gray{T}($f(T, gray(g)))
7368
end
@@ -296,8 +291,6 @@ float(::Type{T}) where {T<:Gray} = typeof(float(zero(T)))
296291
(+)(a::MathTypes, b::MathTypes) = (+)(promote(a, b)...)
297292
(-)(a::MathTypes, b::MathTypes) = (-)(promote(a, b)...)
298293

299-
Compat.@dep_vectorize_2arg Gray max
300-
Compat.@dep_vectorize_2arg Gray min
301294

302295
# Arrays
303296
+(A::AbstractArray{C}) where {C<:MathTypes} = A

0 commit comments

Comments
 (0)