Skip to content

Commit

Permalink
Deprecate push! on ContourCollections
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas Lycken committed Feb 23, 2016
1 parent 1365e3c commit 59f3115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Contour.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Base.writemime(io::IO, ::MIME"text/plain", cc::ContourCollection) = write(io, "$

levels(cc::ContourCollection) = cc.contours

push!{T}(cc::ContourCollection{T}, c::T) = (push!(cc.contours, c); c)
@deprecate push!{T}(cc::ContourCollection{T}, c::T) push!(levels(cc), c)
function start(cc::ContourCollection)
Base.depwarn("Iteration over ContourCollections is deprecated, use `levels(cc)` instead", :start)
start(levels(cc))
Expand Down

0 comments on commit 59f3115

Please sign in to comment.