Skip to content

Commit f1ebf20

Browse files
authored
Remove unused function (#359)
1 parent 64f1727 commit f1ebf20

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/moi_wrapper.jl

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -794,16 +794,6 @@ function _instantiate_diff(model::Optimizer, constructor)
794794
return model_bridged
795795
end
796796

797-
# Find the native differentiation solver in the optimizer chain.
798-
# Cached in `model.diff` to avoid repeated unwrapping.
799-
function _native_diff_solver(model::Optimizer)
800-
if isnothing(model.diff)
801-
model.diff = model.optimizer
802-
model.index_map = MOI.Utilities.identity_index_map(model.optimizer)
803-
end
804-
return model.diff
805-
end
806-
807797
function _diff(
808798
model::Optimizer,
809799
attr::Union{ForwardDifferentiate,ReverseDifferentiate},

0 commit comments

Comments
 (0)