Skip to content

Commit 3be0527

Browse files
authored
Merge pull request #904 from JamesWrigley/invalidations
Delete unnecessary methods to fix invalidations
2 parents a523186 + 82ace5b commit 3be0527

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

src/accumulator.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ Base.setindex!(ct::Accumulator, x, v) = setindex!(ct.map, x, v)
6161

6262
Base.haskey(ct::Accumulator, x) = haskey(ct.map, x)
6363

64-
Base.keys(ct::Accumulator) = keys(ct.map)
65-
6664
Base.values(ct::Accumulator) = values(ct.map)
6765

6866
Base.sum(ct::Accumulator) = sum(values(ct.map))

src/circular_buffer.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,17 +182,13 @@ Return the number of elements currently in the buffer.
182182
"""
183183
Base.length(cb::CircularBuffer) = cb.length
184184

185-
Base.eltype(::Type{CircularBuffer{T}}) where T = T
186-
187185
"""
188186
size(cb::CircularBuffer)
189187
190188
Return a tuple with the size of the buffer.
191189
"""
192190
Base.size(cb::CircularBuffer) = (length(cb),)
193191

194-
Base.convert(::Type{Array}, cb::CircularBuffer{T}) where {T} = T[x for x in cb]
195-
196192
"""
197193
isempty(cb::CircularBuffer)
198194

0 commit comments

Comments
 (0)