From d613e8e9c8965e7376e2bed6378a2bb62125b1a5 Mon Sep 17 00:00:00 2001 From: Martin Holters Date: Tue, 8 Oct 2019 18:40:59 +0200 Subject: [PATCH] Drop compat code for `fetch(::Task)` from #549 --- README.md | 2 -- src/Compat.jl | 4 ---- test/old.jl | 7 +++++++ test/runtests.jl | 7 ------- 4 files changed, 7 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index d07f64f86..6d3337906 100644 --- a/README.md +++ b/README.md @@ -76,8 +76,6 @@ Currently, the `@compat` macro supports the following syntaxes: * Single-argument `permutedims(x)` for matrices and vectors ([#24839]). -* `fetch` for `Task`s ([#25940]). - * `isbits(t::Type)` is now `isbitstype(t)` ([#26850]). * `something` to get the first argument different from `nothing`, unwrapping those diff --git a/src/Compat.jl b/src/Compat.jl index 4102e421b..80e41926c 100644 --- a/src/Compat.jl +++ b/src/Compat.jl @@ -78,10 +78,6 @@ end end end -@static if VERSION < v"0.7.0-DEV.3936" - Base.fetch(t::Task) = wait(t) -end - # https://github.com/JuliaLang/julia/pull/27077 @static if VERSION < v"0.7.0-DEV.5087" export isletter diff --git a/test/old.jl b/test/old.jl index 571821930..fb8ce57ef 100644 --- a/test/old.jl +++ b/test/old.jl @@ -1071,3 +1071,10 @@ end 1 2 1 2 1 2 3 4 3 4 3 4] @test repeat([1, 2], 1, 2, 3) == [x for x in 1:2, y in 1:2, z in 1:3] + +# 0.7.0-DEV.3936 +@test let ct = current_task(), t = @task true + schedule(ct) + yieldto(t) + fetch(t) +end diff --git a/test/runtests.jl b/test/runtests.jl index 8efd2e1eb..a0765ae8b 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -82,13 +82,6 @@ end @test codeunit("foo") == codeunit(SubString("fooαβγ",1,3)) == UInt8 -# 0.7.0-DEV.3936 -@test let ct = current_task(), t = @task true - schedule(ct) - yieldto(t) - fetch(t) -end - # 0.7.0-DEV.5087 @test isletter('a') @test isletter('β')