Skip to content

Commit

Permalink
Remove unneded gray method
Browse files Browse the repository at this point in the history
Fixes #124
  • Loading branch information
timholy committed Sep 11, 2020
1 parent 6cc5a50 commit 5ec4128
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ColorVectorSpace.jl
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ for f in (:mod, :rem, :mod1)
end

# Real values are treated like grays
ColorTypes.gray(x::Real) = x
if !hasmethod(gray, (Number,))
ColorTypes.gray(x::Real) = x
end

dotc(x::T, y::T) where {T<:Real} = acc(x)*acc(y)
dotc(x::Real, y::Real) = dotc(promote(x, y)...)
Expand Down

0 comments on commit 5ec4128

Please sign in to comment.