diff --git a/README.md b/README.md index f5f037c14..a2186661e 100644 --- a/README.md +++ b/README.md @@ -134,8 +134,6 @@ Currently, the `@compat` macro supports the following syntaxes: for entries with no match and gives the index of the first (rather than the last) match ([#25662], [#25998]). -* `method_exists` is now `hasmethod` ([#25615]). - * `object_id` is now `objectid` ([#25615]). * `LinSpace` is now `LinRange` ([#25896]). diff --git a/src/Compat.jl b/src/Compat.jl index eda6f8341..c3a631a7d 100644 --- a/src/Compat.jl +++ b/src/Compat.jl @@ -76,10 +76,6 @@ end end # 0.7.0-DEV.3455 -@static if !isdefined(Base, :hasmethod) - const hasmethod = method_exists - export hasmethod -end @static if !isdefined(Base, :objectid) const objectid = object_id export objectid diff --git a/test/old.jl b/test/old.jl index 79134c5df..0402e5ee6 100644 --- a/test/old.jl +++ b/test/old.jl @@ -727,3 +727,6 @@ let buf = IOBuffer() end @test startswith(String(take!(buf)), Base.text_colors[:red]) end + +# 0.7.0-DEV.3455 +@test hasmethod(sin, Tuple{Float64}) diff --git a/test/runtests.jl b/test/runtests.jl index 93ec0b0a7..aa61dac7d 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -83,7 +83,6 @@ end @test codeunit("foo") == codeunit(SubString("fooαβγ",1,3)) == UInt8 # 0.7.0-DEV.3455 -@test hasmethod(sin, Tuple{Float64}) let x = y = 1 @test objectid(x) == objectid(y) end