Skip to content

Commit

Permalink
Remove redundant tail definition (from e40318d)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonster committed Dec 8, 2014
1 parent d7655de commit bed2b43
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions base/abstractarray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,6 @@ reshape(a::AbstractArray, dims::Int...) = reshape(a, dims)
vec(a::AbstractArray) = reshape(a,length(a))
vec(a::AbstractVector) = a

argtail(x, rest...) = rest
tail(x::Tuple) = argtail(x...)

_sub(::(), ::()) = ()
_sub(t::Tuple, ::()) = t
_sub(t::Tuple, s::Tuple) = _sub(tail(t), tail(s))
Expand Down

0 comments on commit bed2b43

Please sign in to comment.