Skip to content

Commit 64ec1a2

Browse files
c42fandyferris
authored andcommitted
Minor cleanup of some WIP implementation details
1 parent 96c92a6 commit 64ec1a2

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/traits.jl

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,6 @@ Length(::Type{SA}) where {SA <: StaticArray} = Length(Size(SA))
107107
@propagate_inbounds unroll_tuple(f, ::Length{L}) where {L} = unroll_tuple(f, Val{L})
108108

109109

110-
"""
111-
Static or runtime size of an array
112-
"""
113-
const SRSize = Union{Size,Tuple{Vararg{Int}}}
114-
115110
"""
116111
Return either the statically known Size() or runtime size()
117112
"""
@@ -125,12 +120,12 @@ Return either the statically known Size() or runtime size()
125120

126121
# Returns the common Size of the inputs (or else throws a DimensionMismatch)
127122
@inline same_size(as...) = _same_size(_first_static_size(as...), as...)
128-
@inline function _same_size(s::SRSize, a1, as...)
123+
@inline function _same_size(s::Size, a1, as...)
129124
if s == _size(a1)
130125
return _same_size(s, as...)
131126
else
132127
throw(DimensionMismatch("Dimensions must match. Got inputs with $s and $(_size(a1))."))
133128
end
134129
end
135-
@inline _same_size(s::SRSize) = s
130+
@inline _same_size(s::Size) = s
136131

0 commit comments

Comments
 (0)