From 0d468db6963f9a176192a61a08bd49c7caf99214 Mon Sep 17 00:00:00 2001 From: Martin Holters Date: Fri, 4 Oct 2019 21:43:34 +0200 Subject: [PATCH] Drop compat code for `isnumeric` from #543 --- README.md | 2 -- src/Compat.jl | 6 ------ test/old.jl | 4 ++++ test/runtests.jl | 4 ---- 4 files changed, 4 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 18138f0fe..d779b122e 100644 --- a/README.md +++ b/README.md @@ -211,8 +211,6 @@ Currently, the `@compat` macro supports the following syntaxes: * `cfunction` is now `@cfunction` ([#26486]). -* `Unicode.isnumeric` is now available as `isnumeric` ([#25479]). - * `vecnorm` and `vecdot` are now `Compat.norm` and `Compat.dot`, respectively, while the old `norm(A::AbstractMatrix, p=2)` is now `Compat.opnorm` ([#27401]). `import Compat: ⋅` to get `Compat.dot` as the binary operator `⋅`. diff --git a/src/Compat.jl b/src/Compat.jl index f66200a82..6bc993915 100644 --- a/src/Compat.jl +++ b/src/Compat.jl @@ -46,12 +46,6 @@ end include("compatmacro.jl") -# 0.7.0-DEV.3393 -@static if VERSION < v"0.7.0-DEV.3393" - import .Unicode.isnumeric - export isnumeric -end - # 0.7.0-DEV.2951 @static if !isdefined(Base, :AbstractDict) const AbstractDict = Associative diff --git a/test/old.jl b/test/old.jl index d36abbbe3..4577d808e 100644 --- a/test/old.jl +++ b/test/old.jl @@ -565,3 +565,7 @@ end # 0.7.0-DEV.1930 @test textwidth("A") == 1 @test textwidth('A') == 1 + +# 0.7.0-DEV.3393 +@test !isnumeric('a') +@test isnumeric('1') diff --git a/test/runtests.jl b/test/runtests.jl index aa80ead27..e55d74326 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -80,10 +80,6 @@ let A = [1] @test x == 1 end -# 0.7.0-DEV.3393 -@test !isnumeric('a') -@test isnumeric('1') - # 0.7.0-DEV.2951 @test AbstractDict === (isdefined(Base, :AbstractDict) ? Base.AbstractDict : Base.Associative)