Skip to content

Commit

Permalink
Remove unneeded extra method for ConcretizedSlice
Browse files Browse the repository at this point in the history
  • Loading branch information
penelopeysm committed Sep 26, 2024
1 parent 9ff2bb9 commit 3fe838c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/varname.jl
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,6 @@ struct ConcretizedSlice{T,R} <: AbstractVector{T}
end

ConcretizedSlice(s::Base.Slice{R}) where {R} = ConcretizedSlice{eltype(s.indices),R}(s.indices)
ConcretizedSlice(s::Base.OneTo{R}) where {R} = ConcretizedSlice(Base.Slice(s))
Base.show(io::IO, s::ConcretizedSlice) = print(io, ":")
Base.show(io::IO, ::MIME"text/plain", s::ConcretizedSlice) =
print(io, "ConcretizedSlice(", s.range, ")")
Expand Down

0 comments on commit 3fe838c

Please sign in to comment.