Skip to content

Commit 949d46e

Browse files
committed
Remove local isinplace after SciMLBase import
1 parent f232c8f commit 949d46e

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/utils.jl

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -101,21 +101,6 @@ function num_types_in_tuple(sig::UnionAll)
101101
length(Base.unwrap_unionall(sig).parameters)
102102
end
103103

104-
function numargs(f)
105-
typ = Tuple{Any, Val{:analytic}, Vararg}
106-
typ2 = Tuple{Any, Type{Val{:analytic}}, Vararg} # This one is required for overloaded types
107-
typ3 = Tuple{Any, Val{:jac}, Vararg}
108-
typ4 = Tuple{Any, Type{Val{:jac}}, Vararg} # This one is required for overloaded types
109-
typ5 = Tuple{Any, Val{:tgrad}, Vararg}
110-
typ6 = Tuple{Any, Type{Val{:tgrad}}, Vararg} # This one is required for overloaded types
111-
numparam = maximum([(m.sig<:typ || m.sig<:typ2 || m.sig<:typ3 || m.sig<:typ4 || m.sig<:typ5 || m.sig<:typ6) ? 0 : num_types_in_tuple(m.sig) for m in methods(f)])
112-
return (numparam-1) #-1 in v0.5 since it adds f as the first parameter
113-
end
114-
115-
function isinplace(f,inplace_param_number)
116-
numargs(f)>=inplace_param_number
117-
end
118-
119104
### Default Linsolve
120105

121106
# Try to be as smart as possible

0 commit comments

Comments
 (0)