Skip to content

Commit e233b70

Browse files
Merge pull request #1093 from oscardssmith/os/remove-Tricks
Remove `Tricks`
2 parents 9de9cd7 + e8a7093 commit e233b70

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

Project.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ Setfield = "efcf1570-3423-57d1-acb7-fd33fddbac46"
3232
Static = "aedffcd0-7271-4cad-89d0-dc628f76c6d3"
3333
StaticArraysCore = "1e83bf80-4336-4d27-bf5d-d5a4f845583c"
3434
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
35-
Tricks = "410a4b4d-49e4-4fbc-ab6d-cb71b17b3775"
3635
TruncatedStacktraces = "781d530d-4396-4725-bb49-402e4bee1e77"
3736

3837
[weakdeps]
@@ -103,7 +102,6 @@ Static = "1"
103102
StaticArraysCore = "1.4"
104103
Statistics = "1"
105104
Tracker = "0.2"
106-
Tricks = "0.1.6"
107105
TruncatedStacktraces = "1"
108106
Unitful = "1"
109107
julia = "1.10"

src/DiffEqBase.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,6 @@ import SciMLBase: AbstractDiffEqLinearOperator # deprecation path
103103

104104
import SciMLStructures
105105

106-
import Tricks
107-
108106
using Reexport
109107
Reexport.@reexport using SciMLBase
110108

src/solve.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,11 +1262,11 @@ function promote_f(f::F, ::Val{specialize}, u0, p, t) where {F, specialize}
12621262
((specialize === SciMLBase.AutoSpecialize && eltype(u0) !== Any &&
12631263
RecursiveArrayTools.recursive_unitless_eltype(u0) === eltype(u0) &&
12641264
one(t) === oneunit(t) &&
1265-
Tricks.static_hasmethod(ArrayInterface.promote_eltype,
1265+
hasmethod(ArrayInterface.promote_eltype,
12661266
Tuple{Type{typeof(u0)}, Type{dualgen(eltype(u0))}}) &&
1267-
Tricks.static_hasmethod(promote_rule,
1267+
hasmethod(promote_rule,
12681268
Tuple{Type{eltype(u0)}, Type{dualgen(eltype(u0))}}) &&
1269-
Tricks.static_hasmethod(promote_rule,
1269+
hasmethod(promote_rule,
12701270
Tuple{Type{eltype(u0)}, Type{typeof(t)}})) ||
12711271
(specialize === SciMLBase.FunctionWrapperSpecialize &&
12721272
!(f.f isa FunctionWrappersWrappers.FunctionWrappersWrapper)))

0 commit comments

Comments
 (0)