# Unused variable in Optim?

**URL:** <https://discourse.julialang.org/t/unused-variable-in-optim/71840>\
**Category:** General Usage\
**Tags:** optim, optimization\
**Created:** [November 20, 2021, 7:46pm UTC](https://discourse.julialang.org/t/unused-variable-in-optim/71840 "2021-11-20T19:46:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joris\_Pinkse](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joris_pinkse/32/216398_2.png) [@Joris\_Pinkse](https://discourse.julialang.org/u/Joris_Pinkse)\
**Post date:** [November 20, 2021, 7:46pm UTC](https://discourse.julialang.org/t/unused-variable-in-optim/71840/1 "2021-11-20T19:46:51Z")

</div>

On line 372 of newton\_trust\_region.jl of the Optim package, it defines a variable delta, which then is never used. Should that perhaps be state.delta instead?

(already posted an issue on github, but hopeful that someone here will answer sooner)
