Quell some warnings

quells some deprecation warning emitted with DUNE 2.3, as well as removes an unused variable.