From 3fe838c37c2858e0db5e6ea5e0cce4db37be96f1 Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Thu, 26 Sep 2024 16:46:58 +0100 Subject: [PATCH] Remove unneeded extra method for ConcretizedSlice --- src/varname.jl | 1 - 1 file changed, 1 deletion(-) diff --git a/src/varname.jl b/src/varname.jl index 58a528d..974038a 100644 --- a/src/varname.jl +++ b/src/varname.jl @@ -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, ")")