Skip to content

Commit f267e97

Browse files
committed
Drop compat code for Nothing and Cvoid from #435
1 parent 46389bf commit f267e97

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
@@ -152,8 +152,6 @@ Currently, the `@compat` macro supports the following syntaxes:
152152

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

155-
* `Void` is now `Nothing` with an alias `Cvoid` for C interop ([#25162]).
156-
157155
* `Base.IteratorSize` and `Base.IteratorEltype` are available as
158156
`Compat.IteratorSize` and `Compat.IteratorEltype` ([#25402]).
159157

src/Compat.jl

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

4848
include("compatmacro.jl")
4949

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