From 9a28b2a2d912a763b6280e06908a6452eeb9f1a2 Mon Sep 17 00:00:00 2001 From: jClugstor Date: Mon, 18 Nov 2024 12:22:18 -0500 Subject: [PATCH] remove cruft --- lib/OrdinaryDiffEqCore/src/alg_utils.jl | 5 ----- lib/OrdinaryDiffEqCore/src/algorithms.jl | 1 - lib/OrdinaryDiffEqCore/src/misc_utils.jl | 5 ----- 3 files changed, 11 deletions(-) diff --git a/lib/OrdinaryDiffEqCore/src/alg_utils.jl b/lib/OrdinaryDiffEqCore/src/alg_utils.jl index 99715e0c27..bae5c2fb91 100644 --- a/lib/OrdinaryDiffEqCore/src/alg_utils.jl +++ b/lib/OrdinaryDiffEqCore/src/alg_utils.jl @@ -457,8 +457,3 @@ function Base.show(io::IO, ::MIME"text/plain", alg::OrdinaryDiffEqAlgorithm) end print(io, ")") end - - -#function get_chunksize(alg::AutoForwardDiff{CS}) where {CS} -# Val(CS) -#end diff --git a/lib/OrdinaryDiffEqCore/src/algorithms.jl b/lib/OrdinaryDiffEqCore/src/algorithms.jl index 18241648f3..eb1b774849 100644 --- a/lib/OrdinaryDiffEqCore/src/algorithms.jl +++ b/lib/OrdinaryDiffEqCore/src/algorithms.jl @@ -88,7 +88,6 @@ struct CompositeAlgorithm{CS, T, F} <: OrdinaryDiffEqCompositeAlgorithm algs::T choice_function::F function CompositeAlgorithm(algs::T, choice_function::F) where {T, F} - #CS = mapreduce(alg -> has_chunksize(alg) ? get_chunksize_int(alg) : 0, max, algs) CS = mapreduce(alg -> 0, max, algs) new{CS, T, F}(algs, choice_function) end diff --git a/lib/OrdinaryDiffEqCore/src/misc_utils.jl b/lib/OrdinaryDiffEqCore/src/misc_utils.jl index ac022c3462..d9a0c61ece 100644 --- a/lib/OrdinaryDiffEqCore/src/misc_utils.jl +++ b/lib/OrdinaryDiffEqCore/src/misc_utils.jl @@ -158,8 +158,3 @@ function _process_AD_choice(ad_alg::AbstractADType, chunksize, diff_type) ad_alg end - - -_ADType_to_Bool(::Type{T}) where {T <: AutoForwardDiff} = true - -_ADType_to_Bool(::Type{T}) where {T <: AutoFiniteDiff} = false \ No newline at end of file