From 550d2ce0442e0127fd4f4f04a465958192279ea8 Mon Sep 17 00:00:00 2001 From: Martin Holters Date: Fri, 31 Aug 2018 11:12:50 +0200 Subject: [PATCH] Definitions of `numerator` and `denominator` Were added in #290. --- README.md | 3 --- src/Compat.jl | 8 -------- test/runtests.jl | 4 ---- 3 files changed, 15 deletions(-) diff --git a/README.md b/README.md index 44067f7af..168896d01 100644 --- a/README.md +++ b/README.md @@ -282,8 +282,6 @@ Currently, the `@compat` macro supports the following syntaxes: * `reprmime(mime, x)` is now `repr(mime, x)` ([#25990]) and `mimewritable` is now `showable` ([#26089]). -* `num` and `den` are now `numerator` and `denominator` ([#19246]) - * `takebuf_array` is now a method of `take!`. `takebuf_string(io)` becomes `String(take!(io))` ([#19088]) * `is_apple`, `is_bsd`, `is_linux`, `is_unix`, and `is_windows` are now `Sys.isapple`, `Sys.isbsd`, @@ -491,7 +489,6 @@ includes this fix. Find the minimum version from there. [#18629]: https://github.com/JuliaLang/julia/issues/18629 [#18727]: https://github.com/JuliaLang/julia/issues/18727 [#19088]: https://github.com/JuliaLang/julia/issues/19088 -[#19246]: https://github.com/JuliaLang/julia/issues/19246 [#19449]: https://github.com/JuliaLang/julia/issues/19449 [#19635]: https://github.com/JuliaLang/julia/issues/19635 [#19784]: https://github.com/JuliaLang/julia/issues/19784 diff --git a/src/Compat.jl b/src/Compat.jl index f78e0021e..f9a8903ee 100644 --- a/src/Compat.jl +++ b/src/Compat.jl @@ -142,14 +142,6 @@ else end end -# julia#19246 -@static if !isdefined(Base, :numerator) - # 0.6 - const numerator = num - const denominator = den - export numerator, denominator -end - # julia #19950 @static if !isdefined(Base, :iszero) # 0.6 diff --git a/test/runtests.jl b/test/runtests.jl index cf6ad2fda..2ab808b18 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -44,10 +44,6 @@ end @test !(Int >: Integer) @test Integer >: Int -# julia#19246 -@test numerator(1//2) === 1 -@test denominator(1//2) === 2 - # julia#19088 let io = IOBuffer() write(io, "aaa")