Eliminate set but not used variable.
No functional change intended.
(cherry picked from commit 78dfcf256a443df2a43bdfcce6b7d7af143d964f)