Skip to content

Commit e0fe5da

Browse files
authored
Merge pull request #781 from JuliaArrays/sd/compiletime
remove unnecessary definition of `!=`
2 parents a333486 + 1bef509 commit e0fe5da

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/traits.jl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,6 @@ Length(::Size{S}) where {S} = _Length(S...)
129129
@pure Base.:(==)(::Size{S}, s::Tuple{Vararg{Int}}) where {S} = S === s
130130
@pure Base.:(==)(s::Tuple{Vararg{Int}}, ::Size{S}) where {S} = s === S
131131

132-
@pure Base.:(!=)(::Size{S}, s::Tuple{Vararg{Int}}) where {S} = S !== s
133-
@pure Base.:(!=)(s::Tuple{Vararg{Int}}, ::Size{S}) where {S} = s !== S
134-
135132
@pure Base.prod(::Size{S}) where {S} = prod(S)
136133

137134
Base.LinearIndices(::Size{S}) where {S} = LinearIndices(S)
@@ -144,9 +141,6 @@ Base.LinearIndices(::Size{S}) where {S} = LinearIndices(S)
144141
@pure Base.:(==)(::Length{L}, l::Int) where {L} = L == l
145142
@pure Base.:(==)(l::Int, ::Length{L}) where {L} = l == L
146143

147-
@pure Base.:(!=)(::Length{L}, l::Int) where {L} = L != l
148-
@pure Base.:(!=)(l::Int, ::Length{L}) where {L} = l != L
149-
150144
# unroll_tuple also works with `Length`
151145
@propagate_inbounds unroll_tuple(f, ::Length{L}) where {L} = unroll_tuple(f, Val{L})
152146

0 commit comments

Comments
 (0)