From 5a10ae5931939f65afb81cfa3274f54b64ece4fb Mon Sep 17 00:00:00 2001 From: anand jain Date: Fri, 16 Jul 2021 20:13:56 -0400 Subject: [PATCH] remove un-roundtripable 2-arg `show` methods --- src/array_partition.jl | 1 - src/vector_of_array.jl | 2 -- 2 files changed, 3 deletions(-) diff --git a/src/array_partition.jl b/src/array_partition.jl index 0903d25b..f9bd90ac 100644 --- a/src/array_partition.jl +++ b/src/array_partition.jl @@ -244,7 +244,6 @@ Base.last(A::ArrayPartition) = last(last(A.x)) ## display Base.summary(A::ArrayPartition) = string(typeof(A), " with arrays:") -Base.show(io::IO,A::ArrayPartition) = map(x->Base.show(io,x),A.x) Base.show(io::IO, m::MIME"text/plain", A::ArrayPartition) = show(io, m, A.x) ## broadcasting diff --git a/src/vector_of_array.jl b/src/vector_of_array.jl index e32d4ddd..cdf09bfa 100644 --- a/src/vector_of_array.jl +++ b/src/vector_of_array.jl @@ -220,11 +220,9 @@ Base.vec(VA::AbstractVectorOfArray) = vec(convert(Array,VA)) # Allocates @inline Statistics.cor(VA::AbstractVectorOfArray;kwargs...) = cor(Array(VA);kwargs...) # make it show just like its data -Base.show(io::IO, x::AbstractVectorOfArray) = Base.print_array(io, x.u) Base.show(io::IO, m::MIME"text/plain", x::AbstractVectorOfArray) = (println(io, summary(x), ':'); show(io, m, x.u)) Base.summary(A::AbstractVectorOfArray) = string("VectorOfArray{",eltype(A),",",ndims(A),"}") -Base.show(io::IO, x::AbstractDiffEqArray) = (print(io,"t: ");show(io, x.t);println(io);print(io,"u: ");show(io, x.u)) Base.show(io::IO, m::MIME"text/plain", x::AbstractDiffEqArray) = (print(io,"t: ");show(io,m,x.t);println(io);print(io,"u: ");show(io,m,x.u)) # plot recipes