diff --git a/src/accumulator.jl b/src/accumulator.jl index feaed0a3..dc923f3d 100644 --- a/src/accumulator.jl +++ b/src/accumulator.jl @@ -61,8 +61,6 @@ Base.setindex!(ct::Accumulator, x, v) = setindex!(ct.map, x, v) Base.haskey(ct::Accumulator, x) = haskey(ct.map, x) -Base.keys(ct::Accumulator) = keys(ct.map) - Base.values(ct::Accumulator) = values(ct.map) Base.sum(ct::Accumulator) = sum(values(ct.map)) diff --git a/src/circular_buffer.jl b/src/circular_buffer.jl index a9378fc9..5f035748 100644 --- a/src/circular_buffer.jl +++ b/src/circular_buffer.jl @@ -182,8 +182,6 @@ Return the number of elements currently in the buffer. """ Base.length(cb::CircularBuffer) = cb.length -Base.eltype(::Type{CircularBuffer{T}}) where T = T - """ size(cb::CircularBuffer) @@ -191,8 +189,6 @@ Return a tuple with the size of the buffer. """ Base.size(cb::CircularBuffer) = (length(cb),) -Base.convert(::Type{Array}, cb::CircularBuffer{T}) where {T} = T[x for x in cb] - """ isempty(cb::CircularBuffer)