Skip to content

Commit

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

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

* `Range` is now `AbstractRange` ([#23570])

* `IntSet` is now `BitSet` ([#24282])

* `strwidth` and `charwidth` are now merged into `textwidth` ([#23667]).
Expand Down
6 changes: 0 additions & 6 deletions src/Compat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@ import Base.MathConstants

include("compatmacro.jl")

# 0.7.0-DEV.1721
@static if !isdefined(Base, :AbstractRange)
const AbstractRange = Range
export AbstractRange
end

if VERSION < v"0.7.0-DEV.1325"
function Base.rtoldefault(x, y, atol::Real)
T = isa(x, Type) ? x : typeof(x)
Expand Down
3 changes: 3 additions & 0 deletions test/old.jl
Original file line number Diff line number Diff line change
Expand Up @@ -280,3 +280,6 @@ let
@test vec([b for (a,b) in pairs(IndexLinear(), A14)]) == [11,12,13,14]
@test vec([b for (a,b) in pairs(IndexCartesian(), A14)]) == [11,12,13,14]
end

# 0.7
@test isa(1:2, AbstractRange)
3 changes: 0 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,6 @@ if VERSION < v"0.7.0-DEV.880"
end
end

# 0.7
@test isa(1:2, AbstractRange)

# 0.7
@test isa(Base.rtoldefault(1.0, 2.0, 0), Float64)
@test isa(Base.rtoldefault(Float64, 2.0, 0), Float64)
Expand Down

0 comments on commit 72af014

Please sign in to comment.