Skip to content

Commit d86af87

Browse files
authored
revert 2
1 parent fa63344 commit d86af87

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/KernelAbstractions.jl

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -510,15 +510,6 @@ Get a [`Backend`](@ref) instance suitable for array `A`.
510510
"""
511511
function get_backend end
512512

513-
function get_backend_recur(f::F, x) where {F}
514-
t() = throw(ArgumentError("throwing to prevent a stack overflow, possibly a `get_backend` method is missing?"))
515-
y = f(x)
516-
if y isa typeof(x)
517-
@noinline t()
518-
end
519-
return get_backend(y)
520-
end
521-
522513
# Should cover SubArray, ReshapedArray, ReinterpretArray, Hermitian, AbstractTriangular, etc.:
523514
function get_backend(A::AbstractArray)
524515
P = parent(A)

0 commit comments

Comments
 (0)