From f4219af451236c5251030e598d128a551bb5a53d Mon Sep 17 00:00:00 2001 From: oscarddssmith Date: Fri, 27 Sep 2024 14:53:08 -0400 Subject: [PATCH] remove __init_ones --- src/utils.jl | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/utils.jl b/src/utils.jl index 1a4ffd2c8..e13f9ca60 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -34,13 +34,6 @@ end @inline _restructure(y, x) = restructure(y, x) @inline _restructure(y::Number, x::Number) = x -@inline function __init_ones(x) - w = similar(x) - recursivefill!(w, true) - return w -end -@inline __init_ones(x::StaticArray) = ones(typeof(x)) - @inline __maybe_unaliased(x::Union{Number, SArray}, ::Bool) = x @inline function __maybe_unaliased(x::AbstractArray, alias::Bool) # Spend time coping iff we will mutate the array