Skip to content

Commit d744d24

Browse files
committed
Drop compat code for Nothing and Cvoid from #435
1 parent 5522d24 commit d744d24

File tree

4 files changed

+4
-13
lines changed

4 files changed

+4
-13
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,6 @@ Currently, the `@compat` macro supports the following syntaxes:
154154

155155
* `reprmime(mime, x)` is now `repr(mime, x)` ([#25990]) and `mimewritable` is now `showable` ([#26089]).
156156

157-
* `Void` is now `Nothing` with an alias `Cvoid` for C interop ([#25162]).
158-
159157
* `Base.IteratorSize` and `Base.IteratorEltype` are available as
160158
`Compat.IteratorSize` and `Compat.IteratorEltype` ([#25402]).
161159

src/Compat.jl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,6 @@ end
4646

4747
include("compatmacro.jl")
4848

49-
# 0.7.0-DEV.3137
50-
@static if !isdefined(Base, :Nothing)
51-
const Nothing = Void
52-
const Cvoid = Void
53-
export Nothing, Cvoid
54-
end
55-
5649
# https://github.com/JuliaLang/julia/pull/29679
5750
if VERSION < v"1.1.0-DEV.472"
5851
export isnothing

test/old.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,3 +577,7 @@ end
577577
@test Compat.axes === (isdefined(Base, :axes) ? Base.axes : Base.indices)
578578
@test Compat.axes(1) == ()
579579
@test Compat.axes(1,1) == 1:1
580+
581+
# 0.7.0-DEV.3137
582+
@test Nothing === (isdefined(Base, :Nothing) ? Base.Nothing : Base.Void)
583+
@test Nothing === Cvoid

test/runtests.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,6 @@ let A = [1]
8080
@test x == 1
8181
end
8282

83-
# 0.7.0-DEV.3137
84-
@test Nothing === (isdefined(Base, :Nothing) ? Base.Nothing : Base.Void)
85-
@test Nothing === Cvoid
86-
8783
# 0.7.0-DEV.3017
8884
@test isa(Some(1), Some{Int})
8985
@test convert(Some{Float64}, Some(1)) == Some(1.0)

0 commit comments

Comments
 (0)