Skip to content

Commit bfaad4e

Browse files
author
Michael Abbott
committed
Revert "fix hash, findfirst"
This reverts commit 281959a.
1 parent 281959a commit bfaad4e

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

src/functions.jl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,6 @@ end
206206
Base.filter(f, A::KeyedVector) = getindex(A, map(f, parent(A)))
207207
Base.filter(f, A::KeyedArray) = filter(f, parent(A))
208208

209-
# These would otherwise call keys(A), which perhaps it would be better to allow:
210-
Base.hash(A::KeyedArray) = hash((parent(A), axiskeys(A)...))
211-
Base.findfirst(f::Function, A::KeyedArray) = findfirst(f, parent(A))
212-
Base.findlast(f::Function, A::KeyedArray) = findlast(f, parent(A))
213-
214209
using LinearAlgebra
215210

216211
for (mod, fun, lazy) in [(Base, :permutedims, false),

test/_functions.jl

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -233,11 +233,3 @@ end
233233
@test M MN
234234

235235
end
236-
@testset "hash & find" begin
237-
238-
@test hash(M) != hash(parent(M))
239-
240-
findfirst(x->x>50, V) == findfirst(x->x>50, parent(V))
241-
findlast(x->x<=50, V) == findlast(x->x<=50, parent(V))
242-
243-
end

0 commit comments

Comments
 (0)