Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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