Skip to content

Commit

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

* `endof` is now `lastindex` ([#25458]). (Note that `lastindex(A, n)` is not supported.)

* `nb_available` is now `bytesavailable` ([#25634]).

* `method_exists` is now `hasmethod` ([#25615]).

* `object_id` is now `objectid` ([#25615]).
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.3481
@static if !isdefined(Base, :bytesavailable)
const bytesavailable = nb_available
export bytesavailable
end

# 0.7.0-DEV.3583
@static if !isdefined(Base, :lastindex)
const lastindex = endof
Expand Down
6 changes: 6 additions & 0 deletions test/old.jl
Original file line number Diff line number Diff line change
Expand Up @@ -698,3 +698,9 @@ end
@test GC.enable(true)

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

# 0.7.0-DEV.3481
let b = IOBuffer()
write(b, "hi")
@test bytesavailable(b) == 0
end
6 changes: 0 additions & 6 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,6 @@ end

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

# 0.7.0-DEV.3481
let b = IOBuffer()
write(b, "hi")
@test bytesavailable(b) == 0
end

# 0.7.0-DEV.3583
@test lastindex(zeros(4)) == 4
@test lastindex(zeros(4,4)) == 16
Expand Down

0 comments on commit a2c3423

Please sign in to comment.