Skip to content

Commit

Permalink
depwarn instead of deprecate
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottPJones committed Jul 7, 2015
1 parent 3a6e592 commit c3792d7
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions base/deprecated.jl
Original file line number Diff line number Diff line change
Expand Up @@ -539,8 +539,16 @@ function start_timer(t, d, r)
end

# 11551
@deprecate utf16_is_surrogate(chr::UInt16) Base.is_surrogate_codeunit(chr)
@deprecate utf16_get_supplementary(lead::UInt16, trail::UInt16) Base.get_supplementary(lead, trail)
function utf16_is_surrogate(chr::UInt16)
depwarn("utf16_is_surrogate was undocumented and unexported, and has been removed",
:utf16_is_surrogate)
Base.is_surrogate_codeunit(chr)
end
function utf16_get_supplementary(lead::UInt16, trail::UInt16)
depwarn("utf16_get_supplementary was undocumented and unexported, and has been removed",
:utf16_get_supplementary)
Base.get_supplementary(lead, trail)
end

const UnionType = Union
export UnionType
Expand Down

0 comments on commit c3792d7

Please sign in to comment.