diff --git a/Project.toml b/Project.toml index 55db5f586..998bc9516 100644 --- a/Project.toml +++ b/Project.toml @@ -32,7 +32,6 @@ Setfield = "efcf1570-3423-57d1-acb7-fd33fddbac46" Static = "aedffcd0-7271-4cad-89d0-dc628f76c6d3" StaticArraysCore = "1e83bf80-4336-4d27-bf5d-d5a4f845583c" Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" -Tricks = "410a4b4d-49e4-4fbc-ab6d-cb71b17b3775" TruncatedStacktraces = "781d530d-4396-4725-bb49-402e4bee1e77" [weakdeps] diff --git a/src/DiffEqBase.jl b/src/DiffEqBase.jl index a4dc83a7d..da7b2c013 100644 --- a/src/DiffEqBase.jl +++ b/src/DiffEqBase.jl @@ -103,8 +103,6 @@ import SciMLBase: AbstractDiffEqLinearOperator # deprecation path import SciMLStructures -import Tricks - using Reexport Reexport.@reexport using SciMLBase diff --git a/src/solve.jl b/src/solve.jl index f5ae5c29f..f6485d100 100644 --- a/src/solve.jl +++ b/src/solve.jl @@ -1262,11 +1262,11 @@ function promote_f(f::F, ::Val{specialize}, u0, p, t) where {F, specialize} ((specialize === SciMLBase.AutoSpecialize && eltype(u0) !== Any && RecursiveArrayTools.recursive_unitless_eltype(u0) === eltype(u0) && one(t) === oneunit(t) && - Tricks.static_hasmethod(ArrayInterface.promote_eltype, + hasmethod(ArrayInterface.promote_eltype, Tuple{Type{typeof(u0)}, Type{dualgen(eltype(u0))}}) && - Tricks.static_hasmethod(promote_rule, + hasmethod(promote_rule, Tuple{Type{eltype(u0)}, Type{dualgen(eltype(u0))}}) && - Tricks.static_hasmethod(promote_rule, + hasmethod(promote_rule, Tuple{Type{eltype(u0)}, Type{typeof(t)}})) || (specialize === SciMLBase.FunctionWrapperSpecialize && !(f.f isa FunctionWrappersWrappers.FunctionWrappersWrapper)))