Skip to content

Commit

Permalink
Remove 0.6 deprecations.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sacha0 committed Jan 7, 2018
1 parent ec8064c commit e858f55
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 1,009 deletions.
12 changes: 0 additions & 12 deletions base/channels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,6 @@ mutable struct Channel{T} <: AbstractChannel
end
return ch
end

# deprecated empty constructor
function Channel{T}() where T
depwarn(string("The empty constructor Channel() is deprecated. ",
"The channel size needs to be specified explictly. ",
"Defaulting to Channel{$T}(32)."), :Channel)
Channel(32)
end
end

Channel(sz) = Channel{Any}(sz)
Expand Down Expand Up @@ -119,10 +111,6 @@ function Channel(func::Function; ctype=Any, csize=0, taskref=nothing)
end



# deprecated empty constructor
Channel() = Channel{Any}()

closed_exception() = InvalidStateException("Channel is closed.", :closed)

isbuffered(c::Channel) = c.sz_max==0 ? false : true
Expand Down
Loading

0 comments on commit e858f55

Please sign in to comment.