Skip to content

Commit

Permalink
Drop compat code for AbstractDisplay from #482
Browse files Browse the repository at this point in the history
  • Loading branch information
martinholters committed Oct 8, 2019
1 parent bd83bd7 commit 4d760d8
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 10 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,6 @@ Currently, the `@compat` macro supports the following syntaxes:

## Renaming

* `Display` is now `AbstractDisplay` ([#24831]).

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

* `search` is now `findfirst`/`findnext` and `rsearch` is now `findlast`/`findprev`,
Expand Down
6 changes: 0 additions & 6 deletions src/Compat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,6 @@ end
end
end

# 0.7.0-DEV.2695
@static if !isdefined(Base, :AbstractDisplay)
const AbstractDisplay = Display
export AbstractDisplay
end

# 0.7.0-DEV.3481
@static if !isdefined(Base, :bytesavailable)
const bytesavailable = nb_available
Expand Down
2 changes: 2 additions & 0 deletions test/old.jl
Original file line number Diff line number Diff line change
Expand Up @@ -701,3 +701,5 @@ end
@test !GC.enable(false)
@test !GC.enable(true)
@test GC.enable(true)

@test eltype(Base.Multimedia.displays) <: AbstractDisplay
2 changes: 0 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ end

@test codeunit("foo") == codeunit(SubString("fooαβγ",1,3)) == UInt8

@test eltype(Base.Multimedia.displays) <: AbstractDisplay

# 0.7.0-DEV.3481
let b = IOBuffer()
write(b, "hi")
Expand Down

0 comments on commit 4d760d8

Please sign in to comment.