Remove unused variable, fix #16310 Upstream-commit: bfc4e38429baec7414364bbe20787245d3f2b432 Component: engine