diff --git a/README.md b/README.md index a862986b8..28dfa5783 100644 --- a/README.md +++ b/README.md @@ -84,8 +84,6 @@ Currently, the `@compat` macro supports the following syntaxes: * `@compat finalizer(func, obj)` with the finalizer to run as the first argument and the object to be finalized as the second ([#24605]). -* `get` do-block syntax supported when using `ENV` ([#23412]). - * `Some{T}` wraps `T` to signify that a result of `T<:Void` is expected ([#23642]). * `replace` accepts a pair of pattern and replacement, with the number of replacements as diff --git a/src/Compat.jl b/src/Compat.jl index d717961d1..d5e42b683 100644 --- a/src/Compat.jl +++ b/src/Compat.jl @@ -37,13 +37,6 @@ import Base64 include("compatmacro.jl") -# 0.7.0-DEV.1499 -if VERSION < v"0.7.0-DEV.1499" - function Base.get(f::Base.Callable, ::Base.EnvHash, k::AbstractString) - Base.access_env(k->f(), k) - end -end - # 0.7.0-DEV.2919 @static if !isdefined(Base, :ComplexF16) const ComplexF16 = Complex{Float16} diff --git a/test/old.jl b/test/old.jl index 4639763db..7cea97632 100644 --- a/test/old.jl +++ b/test/old.jl @@ -532,3 +532,9 @@ end # 0.7.0-DEV.2687, 0.7.0-DEV.4527 @test isa(BitVector(undef, 2), BitVector) @test isa(BitArray(undef, 2, 2), BitMatrix) + +# 0.7.0-DEV.1499 +let key = "TEST_23412" + @test !haskey(ENV, key) + @test get(() -> "default", ENV, key) == "default" +end diff --git a/test/runtests.jl b/test/runtests.jl index eb94b8c2c..390ca3f5b 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -87,12 +87,6 @@ let A = [1] @test x == 1 end -# 0.7.0-DEV.1499 -let key = "TEST_23412" - @test !haskey(ENV, key) - @test get(() -> "default", ENV, key) == "default" -end - # 0.7.0-DEV.2919 @test ComplexF16 === Complex{Float16} @test ComplexF32 === Complex{Float32}