Skip to content

Commit 382bc0b

Browse files
committed
Drop compat code for invpermute! from #445
1 parent 734c8ac commit 382bc0b

File tree

4 files changed

+3
-11
lines changed

4 files changed

+3
-11
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,6 @@ Currently, the `@compat` macro supports the following syntaxes:
154154

155155
* `copy!` and `unsafe_copy!` are now `copyto!` and `unsafe_copyto!` ([#24808]).
156156

157-
* `ipermute!` is now `invpermute!` ([#25168]).
158-
159157
* `module_parent`, `Base.function_module`, and `Base.datatype_module` are now methods of
160158
a new function called `parentmodule` ([#25629]).
161159

src/Compat.jl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,6 @@ end
7070
end
7171
end
7272

73-
# 0.7.0-DEV.3173
74-
@static if !isdefined(Base, :invpermute!)
75-
const invpermute! = ipermute!
76-
export invpermute!
77-
end
78-
7973
@static if VERSION < v"0.7.0-DEV.3172"
8074
Base.replace(s::AbstractString, pat_rep::Pair; count::Integer=typemax(Int)) =
8175
replace(s, first(pat_rep), last(pat_rep), count)

test/old.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,3 +598,6 @@ end
598598
@test convert(Nothing, nothing) == nothing
599599
@test_throws MethodError convert(Nothing, 1)
600600
@test Some(nothing) != nothing
601+
602+
# 0.7.0-DEV.3173
603+
@test invpermute!(permute!([1, 2], 2:-1:1), 2:-1:1) == [1, 2]

test/runtests.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,6 @@ let A = [0, 0, 0], B = [1, 2, 3]
8888
@test unsafe_copyto!(A, 2, B, 1, 1) === A == [0, 1, 0]
8989
end
9090

91-
# 0.7.0-DEV.3173
92-
@test invpermute!(permute!([1, 2], 2:-1:1), 2:-1:1) == [1, 2]
93-
9491
# 0.7.0-DEV.3172
9592
@test replace("abcb", "b"=>"c") == "accc"
9693
@test replace("abcb", "b"=>"c", count=1) == "accb"

0 commit comments

Comments
 (0)