Skip to content

Commit

Permalink
Merge pull request #904 from JamesWrigley/invalidations
Browse files Browse the repository at this point in the history
Delete unnecessary methods to fix invalidations
  • Loading branch information
oxinabox authored Apr 12, 2024
2 parents a523186 + 82ace5b commit 3be0527
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/accumulator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
4 changes: 0 additions & 4 deletions src/circular_buffer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -182,17 +182,13 @@ 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)
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)
Expand Down

0 comments on commit 3be0527

Please sign in to comment.