Skip to content

Commit 57a2b2b

Browse files
author
oscarddssmith
committed
remove __init_ones
1 parent f5bc8bd commit 57a2b2b

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/utils.jl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,6 @@ end
3434
@inline _restructure(y, x) = restructure(y, x)
3535
@inline _restructure(y::Number, x::Number) = x
3636

37-
@inline function __init_ones(x)
38-
w = similar(x)
39-
recursivefill!(w, true)
40-
return w
41-
end
42-
@inline __init_ones(x::StaticArray) = ones(typeof(x))
43-
4437
@inline __maybe_unaliased(x::Union{Number, SArray}, ::Bool) = x
4538
@inline function __maybe_unaliased(x::AbstractArray, alias::Bool)
4639
# Spend time coping iff we will mutate the array

0 commit comments

Comments
 (0)