Eliminate unused variable warning.

Change-Id: I30dc8e31e9ccb3421f095cc402b332a77b9344cd
Merge topic 'scalarbar_from_vtk' into next

b69e093 Eliminate unused variable warning.